TSparseMtx.IsEqual Method

Overload List

#SignatureDescription
1function IsEqual(const Value: TCplx): boolean; overload;Compares complex Value with all calling object elements.
2function IsEqual(const Value: TCplx; const Tolerance: double; const Compare: TCompare): boolean; overload;Compares complex Value with all calling object elements.
3function IsEqual(const Vec: TMtxVec): boolean; overload;Compares two objects.
└ indexed: function IsEqual(const Vec: TMtxVec; VecIndex, Index, Len: integer): boolean; overload;
4function IsEqual(const Vec: TMtxVec; const Precision: double; const Compare: TCompare = cmpAbsolute): boolean; overload;Compares Vec elements with coresponding calling object elements.
└ indexed: function IsEqual(const Vec: TMtxVec; VecIndex, Index, Len: integer; const Precision: double; const Compare: TCompare = cmpAbsolute): boolean; overload;
5function IsEqual(const Value: double): boolean; overload;Compares real Value with all calling object elements.
6function IsEqual(const Value: double; const Tolerance: double; const Compare: TCompare): boolean; overload;Compares real Value with all calling object elements.

Overload 1: function IsEqual(const Value: TCplx): boolean; overload;

Compares complex Value with all calling object elements.

#NameTypeDescription
1ValueTCplxscalar

Returns: boolean

Overload 2: function IsEqual(const Value: TCplx; const Tolerance: double; const Compare: TCompare): boolean; overload;

Compares complex Value with all calling object elements.

#NameTypeDescription
1ValueTCplxscalar
2Tolerancedoublescalar
3CompareTCompare

Returns: boolean

Remarks:

Algorithm uses the Compare method and specified Tolerance.

Overload 3: function IsEqual(const Vec: TMtxVec): boolean; overload;

Compares two objects.

#NameTypeDescription
1VecTMtxVecsource TVec or TMtx

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

Indexed: function IsEqual(const Vec: TMtxVec; VecIndex, Index, Len: integer): boolean; overload;

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

#NameTypeDescription
1VecTMtxVecsource TVec or TMtx
2VecIndexinteger
3Indexintegerstart index
4Lenintegerelement count

Returns: boolean

Overload 4: function IsEqual(const Vec: TMtxVec; const Precision: double; const Compare: TCompare = cmpAbsolute): boolean; overload;

Compares Vec elements with coresponding calling object elements.

#NameTypeDescription
1VecTMtxVecsource TVec or TMtx
2Precisiondoublescalar
3CompareTCompare

Returns: boolean

Remarks:

Method uses comparison algorithm specified by TMtxVec.Precision property.

Indexed: function IsEqual(const Vec: TMtxVec; VecIndex, Index, Len: integer; const Precision: double; const Compare: TCompare = cmpAbsolute): boolean; overload;

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

#NameTypeDescription
1VecTMtxVecsource TVec or TMtx
2VecIndexinteger
3Indexintegerstart index
4Lenintegerelement count
5Precisiondoublescalar
6CompareTCompare

Returns: boolean

Remarks:

Algorithm uses the Compare type and specified Precision.

Overload 5: function IsEqual(const Value: double): boolean; overload;

Compares real Value with all calling object elements.

#NameTypeDescription
1Valuedoublescalar

Returns: boolean

Overload 6: function IsEqual(const Value: double; const Tolerance: double; const Compare: TCompare): boolean; overload;

Compares real Value with all calling object elements.

#NameTypeDescription
1Valuedoublescalar
2Tolerancedoublescalar
3CompareTCompare

Returns: boolean

Remarks:

Algorithm uses the Compare method and specified Tolerance.