Compute the sum of two sparse matrices. Performs the operation C = A + B, where C[i,j] = A[i,j] + B[i,j].

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

Syntax

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

Return Value

Sparse matrix representation of A + B

See Also