TVec::IsEqual Method

Overload List

#SignatureDescription
1bool IsEqual(TMtxVec *Vec);Compares two objects.
2bool IsEqual(TMtxVec *Vec, int VecIndex, int Index, int Len);Compares Vec elements [VecIndex]..[VecIndex+Len-1] with calling object elements [Index]..[Index+Len-1].
3bool IsEqual(TMtxVec *Vec, const double Precision, const TCompare Compare = TCompare::cmpAbsolute);Compares Vec elements with coresponding calling object elements.
4bool 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].
5bool IsEqual(const TCplx &Value);Compares complex Value with all calling object elements.
6bool IsEqual(const double Value);Compares real Value with all calling object elements.
7bool IsEqual(const double Value, const double Tolerance, const TCompare Compare);Compares real Value with all calling object elements.
8bool IsEqual(const TCplx &Value, const double Tolerance, const TCompare Compare);Compares complex Value with all calling object elements.

Overload 1: bool IsEqual(TMtxVec *Vec);

Compares two objects.

#NameTypeDescription
1VecTMtxVec *

Returns: True, if they are equal.

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

See Also: TMtx::Equal, TSparseMtx::Equal, TVec::Equal
Declared in Dew::Math::TMtxVec · Dew.Math/AbstractMtxVec.h · Cross-compiler

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].

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

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

Compares Vec elements with coresponding calling object elements.

#NameTypeDescription
1VecTMtxVec *
2Precisionconst double
3Compare = TCompare::cmpAbsoluteconst TCompare
Remarks:

Method uses comparison algorithm specified by TVec::Precision property.

Declared in Dew::Math::TMtxVec · Dew.Math/AbstractMtxVec.h · Cross-compiler

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].

#NameTypeDescription
1VecTMtxVec *
2VecIndexint
3Indexint
4Lenint
5Precisionconst double
6Compare = TCompare::cmpAbsoluteconst TCompare
Remarks:

Algorithm uses the Compare type and specified Precision.

Declared in Dew::Math::TMtxVec · Dew.Math/AbstractMtxVec.h · Cross-compiler

Overload 5: bool IsEqual(const TCplx &Value);

Compares complex Value with all calling object elements.

#NameTypeDescription
1Valueconst TCplx &
Declared in Dew::Math::TMtxVec · Dew.Math/AbstractMtxVec.h · Cross-compiler

Overload 6: bool IsEqual(const double Value);

Compares real Value with all calling object elements.

#NameTypeDescription
1Valueconst double
Declared in Dew::Math::TMtxVec · Dew.Math/AbstractMtxVec.h · Cross-compiler

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

Compares real Value with all calling object elements.

#NameTypeDescription
1Valueconst double
2Toleranceconst double
3Compareconst TCompare
Remarks:

Algorithm uses the Compare method and specified Tolerance.

Declared in Dew::Math::TMtxVec · Dew.Math/AbstractMtxVec.h · Cross-compiler

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

Compares complex Value with all calling object elements.

#NameTypeDescription
1Valueconst TCplx &
2Toleranceconst double
3Compareconst TCompare
Remarks:

Algorithm uses the Compare method and specified Tolerance.

Declared in Dew::Math::TMtxVec · Dew.Math/AbstractMtxVec.h · Cross-compiler