Summary
Compares two sparse matrices.
Class
TSparseMtx
Declaration
Function Equal(B: TSparseMtx; Tolerance: TSample = 0): boolean;
Result
true, if the calling matrix is equal to sparse 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.
Declaration
Function Equal(B: TMtx; Tolerance: TSample = 0; NonZerosOnly: boolean = False): boolean;
Description
@Returns 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 2008 Dew Research |
http://www.dewresearch.com