Subtracts two sparse matrices.

Namespace:  CenterSpace.NMath.Matrix
Assembly:  NMath (in NMath.dll) Version: 5.1.0.0

Syntax

C#
public static DoubleCsrSparseMatrix operator -(
	DoubleCsrSparseMatrix A,
	DoubleCsrSparseMatrix B
)
Visual Basic (Declaration)
Public Shared Operator - ( _
	A As DoubleCsrSparseMatrix, _
	B As DoubleCsrSparseMatrix _
) As DoubleCsrSparseMatrix
Visual C++
public:
static DoubleCsrSparseMatrix^ operator -(
	DoubleCsrSparseMatrix^ A, 
	DoubleCsrSparseMatrix^ B
)

Return Value

A sparse matrix C where C[i,j] = A[i,j] - B[i,j].

Exceptions

ExceptionCondition
CenterSpace.NMath.Core..::.MismatchedSizeExceptionThrown if the two matrices do not have the same dimensions.

See Also