SquareMatrixSubtraction Operator

Computes the difference of two square matrices.

Definition

Namespace: Meta.Numerics.Matrices
Assembly: Meta.Numerics (in Meta.Numerics.dll) Version: 4.2.0+6d77d64445f7d5d91b12e331399c4362ecb25333
C#
public static SquareMatrix operator -(
	SquareMatrix A,
	SquareMatrix B
)

Parameters

A  SquareMatrix
The first matrix.
B  SquareMatrix
The second matrix.

Return Value

SquareMatrix
The difference A - B.

Remarks

Matrix subtraction is an O(N2) process.

Exceptions

ArgumentNullExceptionA or B is .
DimensionMismatchExceptionThe dimension of A is not the same as the dimension of B.

See Also