TSparseMtx.Add Method

Overload List

#SignatureDescription
1procedure Add(const Y: TMtx);Add the content of the calling sparse matrix to the dense matrix Y.
2procedure Add(const A: TSparseMtx; const B: TSparseMtx; MaxNonZeroCount: Integer);Sums two sparse matrices (A+B).

Overload 1: procedure Add(const Y: TMtx);

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

#NameTypeDescription
1YTMtx

Result: stored in self (calling object)

Overload 2: procedure Add(const A: TSparseMtx; const B: TSparseMtx; MaxNonZeroCount: Integer);

Sums two sparse matrices (A+B).

#NameTypeDescription
1ATSparseMtx
2BTSparseMtx
3MaxNonZeroCountInteger

Result: stored in self (calling object)

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