Overload List
Overload 1: bool IsEqual(TMtxVec *Vec);
Compares two objects.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Vec | TMtxVec * |
Returns: True, if they are equal.
Compares two objects and returns True, if they are equal. The IsEqual uses cmpAbsolute comparison method with comparison tolerance of 10*EPS by default.
The method compares only TSparseMtx::Complex and TSparseMtx::Length properties and coresponding values. To compare matrices or sparse matrices, use the TSparseMtx::Equal method.
Overload 2: bool IsEqual(TMtxVec *Vec, int VecIndex, int Index, int Len);
Compares Vec elements [VecIndex]..[VecIndex+Len-1] with calling object elements [Index]..[Index+Len-1].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Vec | TMtxVec * | |
| 2 | VecIndex | int | |
| 3 | Index | int | |
| 4 | Len | int |
Overload 3: bool IsEqual(TMtxVec *Vec, const double Precision, const TCompare Compare = TCompare::cmpAbsolute);
Compares Vec elements with coresponding calling object elements.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Vec | TMtxVec * | |
| 2 | Precision | const double | |
| 3 | Compare = TCompare::cmpAbsolute | const TCompare |
Method uses comparison algorithm specified by TSparseMtx::Precision property.
Overload 4: bool IsEqual(TMtxVec *Vec, int VecIndex, int Index, int Len, const double Precision, const TCompare Compare = TCompare::cmpAbsolute);
Compares Vec elements [VecIndex]..[VecIndex+Len-1] with calling object elements [Index]..[Index+Len-1].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Vec | TMtxVec * | |
| 2 | VecIndex | int | |
| 3 | Index | int | |
| 4 | Len | int | |
| 5 | Precision | const double | |
| 6 | Compare = TCompare::cmpAbsolute | const TCompare |
Algorithm uses the Compare type and specified Precision.
Overload 5: bool IsEqual(const TCplx &Value);
Compares complex Value with all calling object elements.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Value | const TCplx & |
Overload 6: bool IsEqual(const double Value);
Compares real Value with all calling object elements.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Value | const double |
Overload 7: bool IsEqual(const double Value, const double Tolerance, const TCompare Compare);
Compares real Value with all calling object elements.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Value | const double | |
| 2 | Tolerance | const double | |
| 3 | Compare | const TCompare |
Algorithm uses the Compare method and specified Tolerance.