You are here: Symbol Reference > Sparse Namespace > Classes > TSparseMtx Class > public > Equal Method > TSparseMtx.Equal Method (TMtx, double, boolean)
MtxVec VCL
ContentsIndex
PreviousUpNext
TSparseMtx.Equal Method (TMtx, double, boolean)

Compares two sparse matrices.

Pascal
function Equal(const B: TMtx; Tolerance: double = 0; NonZerosOnly: boolean = False): boolean; overload;

true, if the calling matrix is equal to dense B matrix (if all elements match in position and value).

Tolerance defines the comparison tolerance. The maximum difference between elements may not exceed: +/-Tolerance. If Tolerance is omitted, a direct comparison algorithm is used. If NonZerosOnly is True then only the non-zero values of the calling sparse matrix are compared with corresponding values in the dense matrix.

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