Vector::IsEqual Method

Overload List

#SignatureDescription
1bool IsEqual(TMtxVec *Vec) const;Compares two objects and returns True, if they are equal.
2bool IsEqual(TMtxVec *Vec, int VecIndex, int Index, int Len) const;Compares Vec elements [VecIndex]..[VecIndex+Len-1] with calling object elements [Index]..[Index+Len-1].
3bool IsEqual(TMtxVec *Vec, double Precision, TCompare Compare = TCompare::cmpAbsolute) const;Compares Vec elements with coresponding calling object elements with Compare method and specified Precision.
4bool IsEqual(TMtxVec *Vec, int VecIndex, int Index, int Len, double Precision, TCompare Compare = TCompare::cmpAbsolute) const;Compares Vec elements [VecIndex]..[VecIndex+Len-1] with calling object elements [Index]..[Index+Len-1] with Compare method and specified Precision.
5bool IsEqual(TCplx Value) const;Compares complex Value with all calling object elements.
6bool IsEqual(double Value) const;Compares real Value with all calling object elements.
7bool IsEqual(double Value, double Tolerance, TCompare Compare) const;Compares real Value with all calling object elements with Compare method and specified Tolerance.
8bool IsEqual(TCplx Value, double Tolerance, TCompare Compare) const;Compares complex Value with all calling object elements with Compare method and specified Tolerance.

Overload 1: bool IsEqual(TMtxVec *Vec) const;

Compares two objects and returns True, if they are equal.

#NameTypeDescription
1VecTMtxVec *
Remarks:

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 Vector::Complex and Vector::Length properties and coresponding values. To compare matrices or sparse matrices, use the Equal method.

See Also: Matrix::Equal, TSparseMtx::Equal, Vector::Equal
Declared in Dew::Math::Vector · Dew.Math/MtxExpr.h · Cross-compiler

Overload 2: bool IsEqual(TMtxVec *Vec, int VecIndex, int Index, int Len) const;

Compares Vec elements [VecIndex]..[VecIndex+Len-1] with calling object elements [Index]..[Index+Len-1].

#NameTypeDescription
1VecTMtxVec *
2VecIndexint
3Indexint
4Lenint
Declared in Dew::Math::Vector · Dew.Math/MtxExpr.h · Cross-compiler

Overload 3: bool IsEqual(TMtxVec *Vec, double Precision, TCompare Compare = TCompare::cmpAbsolute) const;

Compares Vec elements with coresponding calling object elements with Compare method and specified Precision.

#NameTypeDescription
1VecTMtxVec *
2Precisiondouble
3Compare = TCompare::cmpAbsoluteTCompare
Declared in Dew::Math::Vector · Dew.Math/MtxExpr.h · Cross-compiler

Overload 4: bool IsEqual(TMtxVec *Vec, int VecIndex, int Index, int Len, double Precision, TCompare Compare = TCompare::cmpAbsolute) const;

Compares Vec elements [VecIndex]..[VecIndex+Len-1] with calling object elements [Index]..[Index+Len-1] with Compare method and specified Precision.

#NameTypeDescription
1VecTMtxVec *
2VecIndexint
3Indexint
4Lenint
5Precisiondouble
6Compare = TCompare::cmpAbsoluteTCompare
Declared in Dew::Math::Vector · Dew.Math/MtxExpr.h · Cross-compiler

Overload 5: bool IsEqual(TCplx Value) const;

Compares complex Value with all calling object elements.

#NameTypeDescription
1ValueTCplx
Declared in Dew::Math::Vector · Dew.Math/MtxExpr.h · Cross-compiler

Overload 6: bool IsEqual(double Value) const;

Compares real Value with all calling object elements.

#NameTypeDescription
1Valuedouble
Declared in Dew::Math::Vector · Dew.Math/MtxExpr.h · Cross-compiler

Overload 7: bool IsEqual(double Value, double Tolerance, TCompare Compare) const;

Compares real Value with all calling object elements with Compare method and specified Tolerance.

#NameTypeDescription
1Valuedouble
2Tolerancedouble
3CompareTCompare
Declared in Dew::Math::Vector · Dew.Math/MtxExpr.h · Cross-compiler

Overload 8: bool IsEqual(TCplx Value, double Tolerance, TCompare Compare) const;

Compares complex Value with all calling object elements with Compare method and specified Tolerance.

#NameTypeDescription
1ValueTCplx
2Tolerancedouble
3CompareTCompare
Declared in Dew::Math::Vector · Dew.Math/MtxExpr.h · Cross-compiler