Adds two Matrix objects.

Namespace: Extreme.Mathematics.LinearAlgebra
Assembly: Extreme.Numerics (Extreme.Numerics)

Syntax

Visual Basic (Declaration)
Public Shared Operator + ( _
	matrix1 As Matrix, _
	matrix2 As Matrix _
) As Matrix
C#
public static Matrix operator + (
	Matrix matrix1,
	Matrix matrix2
)
C++
public:
static Matrix^ operator + (
	Matrix^ matrix1, 
	Matrix^ matrix2
)

Parameters

matrix1 (Extreme.Mathematics.LinearAlgebra.Matrix)
The first Matrix.
matrix2 (Extreme.Mathematics.LinearAlgebra.Matrix)
The second Matrix.

Return Value

A Matrix that is the sum of matrix1 and matrix2.

Return Value

A Matrix that is the sum of the specified form of this matrix and the matrix matrix2.

Exceptions

ExceptionCondition
ArgumentNullExceptionmatrix1 is nullNothingnullptr.

-or-

matrix2 is nullNothingnullptr.

DimensionMismatchExceptionThe number of rows of matrix1 does not equal the number of rows of matrix2-or- The number of columns of matrix1 does not equal the number of columns of matrix2.