Vector.IsEqual Method

Overload List

#SignatureDescription
1function IsEqual(Value: TCplx): Boolean;Compares complex Value with all calling object elements.
2function IsEqual(Value: TCplx; Tolerance: Double; Compare: TCompare): Boolean;Compares complex Value with all calling object elements with Compare method and specified Tolerance.
3function IsEqual(const Vec: TMtxVec): Boolean;Compares two objects and returns True, if they are equal.
└ indexed: function IsEqual(const Vec: TMtxVec; VecIndex: Integer; Index: Integer; Len: Integer): Boolean;
4function IsEqual(const Vec: TMtxVec; Precision: Double; Compare: TCompare): Boolean;Compares Vec elements with coresponding calling object elements with Compare method and specified Precision.
└ indexed: function IsEqual(const Vec: TMtxVec; VecIndex: Integer; Index: Integer; Len: Integer; Precision: Double; Compare: TCompare): Boolean;
5function IsEqual(Value: Double): Boolean;Compares real Value with all calling object elements.
6function IsEqual(Value: Double; Tolerance: Double; Compare: TCompare): Boolean;Compares real Value with all calling object elements with Compare method and specified Tolerance.

Overload 1: function IsEqual(Value: TCplx): Boolean;

Compares complex Value with all calling object elements.

#NameTypeDescription
1ValueTCplxscalar

Returns: Boolean

Overload 2: function IsEqual(Value: TCplx; Tolerance: Double; Compare: TCompare): Boolean;

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

#NameTypeDescription
1ValueTCplxscalar
2ToleranceDoublescalar
3CompareTCompare

Returns: Boolean

Overload 3: function IsEqual(const Vec: TMtxVec): Boolean;

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

#NameTypeDescription
1VecTMtxVec

Returns: Boolean

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

Indexed: function IsEqual(const Vec: TMtxVec; VecIndex: Integer; Index: Integer; Len: Integer): Boolean;

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

#NameTypeDescription
1VecTMtxVec
2VecIndexInteger
3IndexIntegerstart index
4LenIntegerelement count

Returns: Boolean

Overload 4: function IsEqual(const Vec: TMtxVec; Precision: Double; Compare: TCompare): Boolean;

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

#NameTypeDescription
1VecTMtxVec
2PrecisionDoublescalar
3CompareTCompare

Returns: Boolean

Indexed: function IsEqual(const Vec: TMtxVec; VecIndex: Integer; Index: Integer; Len: Integer; Precision: Double; Compare: TCompare): Boolean;

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

#NameTypeDescription
1VecTMtxVec
2VecIndexInteger
3IndexIntegerstart index
4LenIntegerelement count
5PrecisionDoublescalar
6CompareTCompare

Returns: Boolean

Overload 5: function IsEqual(Value: Double): Boolean;

Compares real Value with all calling object elements.

#NameTypeDescription
1ValueDoublescalar

Returns: Boolean

Overload 6: function IsEqual(Value: Double; Tolerance: Double; Compare: TCompare): Boolean;

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

#NameTypeDescription
1ValueDoublescalar
2ToleranceDoublescalar
3CompareTCompare

Returns: Boolean