Compute the sum of two symmetric 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 DoubleSymCsrSparseMatrix Add(
	DoubleSymCsrSparseMatrix A,
	DoubleSymCsrSparseMatrix B
)
Visual Basic (Declaration)
Public Shared Function Add ( _
	A As DoubleSymCsrSparseMatrix, _
	B As DoubleSymCsrSparseMatrix _
) As DoubleSymCsrSparseMatrix
Visual C++
public:
static DoubleSymCsrSparseMatrix^ Add(
	DoubleSymCsrSparseMatrix^ A, 
	DoubleSymCsrSparseMatrix^ B
)

Parameters

A
Type: CenterSpace.NMath.Matrix..::.DoubleSymCsrSparseMatrix
A symmetric sparse matrix.
B
Type: CenterSpace.NMath.Matrix..::.DoubleSymCsrSparseMatrix
A symmetric sparse matrix.

Return Value

Sparse matrix representation of A + B

See Also