Overload List
| # | Signature | Description |
|---|---|---|
| 1 | bool Equal(TSparseMtx *B, double Tolerance = 0); | Compares two sparse matrices. |
| 2 | bool Equal(TMtx *B, double Tolerance = 0, bool NonZerosOnly = false); | Compares two sparse matrices. |
Overload 1: bool Equal(TSparseMtx *B, double Tolerance = 0);
Compares two sparse matrices.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | B | TSparseMtx * | Compare B with calling sparse matrix. |
| 2 | Tolerance = 0 | double | Defines the comparison tolerance. The maximum difference between elements may not exceed: +/-Tolerance. If Tolerance is omitted, a direct comparison algorithm is used. |
Returns: true, if the calling matrix is equal to sparse B matrix (if all elements match in position and value).
Declared in Dew::Math::TSparseMtx · Dew.Math/sparse.h · Cross-compiler
Overload 2: bool Equal(TMtx *B, double Tolerance = 0, bool NonZerosOnly = false);
Compares two sparse matrices.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | B | TMtx * | |
| 2 | Tolerance = 0 | double | |
| 3 | NonZerosOnly = false | bool |
Returns: true, if the calling matrix is equal to dense B matrix (if all elements match in position and value).
Remarks:
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.
See Also: TSparseMtx::IsEqualSize
Declared in Dew::Math::TSparseMtx · Dew.Math/sparse.h · Cross-compiler