Overload List
| # | Signature | Description |
|---|---|---|
| 1 | function Equal(const B: TMtx; Tolerance: double = 0; NonZerosOnly: boolean = False): boolean; overload; | Compares two sparse matrices. |
| 2 | function Equal(const B: TSparseMtx; Tolerance: double = 0): boolean; overload; | Compares two sparse matrices. |
Overload 1: function Equal(const B: TMtx; Tolerance: double = 0; NonZerosOnly: boolean = False): boolean; overload;
Compares two sparse matrices.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | B | TMtx | source TMtx |
| 2 | Tolerance | double | scalar |
| 3 | NonZerosOnly | Boolean |
Returns: boolean - 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.
Overload 2: function Equal(const B: TSparseMtx; Tolerance: double = 0): boolean; overload;
Compares two sparse matrices.
| # | Name | Description |
|---|---|---|
| 1 | B | Compare B with calling sparse matrix. |
| 2 | Tolerance | Defines the comparison tolerance. The maximum difference between elements may not exceed: +/-Tolerance. If Tolerance is omitted, a direct comparison algorithm is used. |
Returns: boolean - true, if the calling matrix is equal to sparse B matrix (if all elements match in position and value).