You are here: Symbol Reference > Sparse Namespace > Classes > TSparseMtx Class > public > TSparseMtx.Sub Method
MtxVec VCL
ContentsIndex
PreviousUpNext
TSparseMtx.Sub Method

Subract two sparse matrices.

Pascal
function Sub(const sLeft: TSparseMtx; const sRight: TSparseMtx): TSparseMtx; overload;

Subtract each of Sparse2 elements from the corresponding elements in matrix Sparse1 (matrix subtraction). The results are stored in the calling sparse matrix. Size and TMtxVec.Complex properties of the calling matrix are set implicitly to match Sparse1 and Sparse2 matrices.

Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!