TSparseMtx::Add Method

Overload List

#SignatureDescription
1void Add(TSparseMtx *A, TSparseMtx *B, int MaxNonZeroCount = 10000000);Sums two sparse matrices (A+B).
2void Add(TMtx *Y);Add the content of the calling sparse matrix to the dense matrix Y.

Overload 1: void Add(TSparseMtx *A, TSparseMtx *B, int MaxNonZeroCount = 10000000);

Sums two sparse matrices (A+B).

#NameTypeDescription
1ATSparseMtx *
2BTSparseMtx *
3MaxNonZeroCount = 10000000int
Remarks:

Sum sparse matrices A and B and place the result in the calling sparse matrix. Because the resulting matrix can be much less sparse, the memory requirements can increase beyond the available system memory. An exception will be raised if if the requested memory size will exceed the value of MaxNonZeroCount.

See Also: TSparseMtx::Sub
Declared in Dew::Math::TSparseMtx · Dew.Math/sparse.h · Cross-compiler

Overload 2: void Add(TMtx *Y);

Add the content of the calling sparse matrix to the dense matrix Y.

#NameTypeDescription
1YTMtx *
Declared in Dew::Math::TSparseMtx · Dew.Math/sparse.h · Cross-compiler