Matrix<T>.Addition Operator

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23

Overload List

Addition(T, Matrix<T>) Adds a matrix and a scalar.
Addition(Matrix<T>, T) Adds a matrix and a scalar.
Addition(Matrix<T>, Matrix<T>) Adds two matrices.

Addition(T, Matrix<T>) Operator

Adds a matrix and a scalar.
C#
public static Matrix<T> operator +(
	T value,
	Matrix<T> matrix
)

Parameters

value  T
The constant.
matrix  Matrix<T>
A matrix.

Return Value

Matrix<T>
A matrix whose elements are the sum of the corresponding elements of matrix and value.

Exceptions

ArgumentNullExceptionmatrix is null

Addition(Matrix<T>, T) Operator

Adds a matrix and a scalar.
C#
public static Matrix<T> operator +(
	Matrix<T> matrix,
	T value
)

Parameters

matrix  Matrix<T>
A matrix.
value  T
The constant.

Return Value

Matrix<T>
A matrix whose elements are the sum of the corresponding elements of matrix and value.

Exceptions

ArgumentNullExceptionmatrix is null

Addition(Matrix<T>, Matrix<T>) Operator

Adds two matrices.
C#
public static Matrix<T> operator +(
	Matrix<T> left,
	Matrix<T> right
)

Parameters

left  Matrix<T>
The first matrix.
right  Matrix<T>
The second matrix.

Return Value

Matrix<T>
A matrix whose elements are the sum of the corresponding elements of left and right.

Exceptions

ArgumentNullExceptionleft is null

-or-

right is null

DimensionMismatchExceptionleft and right do not have the same length.

See Also