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

Compares matrix size.

Pascal
function IsEqualSize(const Sparse: TSparseMtx): boolean; virtual;

true if Sparse sparse matrix TMtxVec.Complex, Rows, Cols and NonZeros properties match those of calling sparse matrix.

SparseA.Size(3,4,3,false); SparseB.Size(3,4,1,false); if SparseA.EqualSize(SparseB) then ShowMessage('Equal size') else ShowMesssage('Not equal size')
Examples on GitHub
Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!