Vector.op_Equality Operator

Overload List

#SignatureDescription
1Boolean op_Equality(TCplx Left, Vector Right)Returns true, if all elements of Right are equal to Left.
2Boolean op_Equality(TMtxVec Left, Vector Right)Returns true, if Left and Right are of equal Length and Values.
3Boolean op_Equality(Vector Left, TCplx Right)Returns true, if all elements of Left are equal to Right.
4Boolean op_Equality(Vector Left, TMtxVec Right)Returns true, if Left and Right are of equal Length and Values.
5Boolean op_Equality(Vector Left, Vector Right)Returns true, if Left and Right are of equal Length and Values.
6Boolean op_Equality(Vector Left, Double Right)Returns true, if all elements of Left are equal to Right.
7Boolean op_Equality(Double Left, Vector Right)Returns true, if all elements of Right are equal to Left.

Overload 1: Boolean op_Equality(TCplx Left, Vector Right)

Returns true, if all elements of Right are equal to Left.

#NameTypeDescription
1LeftTCplxscalar
2RightVector

Returns: Boolean

Overload 2: Boolean op_Equality(TMtxVec Left, Vector Right)

Returns true, if Left and Right are of equal Length and Values.

#NameTypeDescription
1LeftTMtxVecsource TVec or TMtx
2RightVector

Returns: Boolean

Overload 3: Boolean op_Equality(Vector Left, TCplx Right)

Returns true, if all elements of Left are equal to Right.

#NameTypeDescription
1LeftVector
2RightTCplxscalar

Returns: Boolean

Overload 4: Boolean op_Equality(Vector Left, TMtxVec Right)

Returns true, if Left and Right are of equal Length and Values.

#NameTypeDescription
1LeftVector
2RightTMtxVecsource TVec or TMtx

Returns: Boolean

Overload 5: Boolean op_Equality(Vector Left, Vector Right)

Returns true, if Left and Right are of equal Length and Values.

#NameTypeDescription
1LeftVector
2RightVector

Returns: Boolean

Remarks:
var a,b: Vector;
    c: TDoubleArray;
begin
    c := TDoubleArray.Create(1,1,1,1,1);
    TVec(a).CopyFromArray(c);
    TVec(a).Copy(b);
    if a = b then ERaise('a and b are equal!');

    if a = 1 then ERaise('a equals 1!');   //compare to real value

    if a = Cplx(1,0) then ERaise('a equals 1!'); //compare to complex value
end;
See Also: TVec.Equal, TMtxVec.IsEqual

Overload 6: Boolean op_Equality(Vector Left, Double Right)

Returns true, if all elements of Left are equal to Right.

#NameTypeDescription
1LeftVector
2RightDoublescalar

Returns: Boolean

Overload 7: Boolean op_Equality(Double Left, Vector Right)

Returns true, if all elements of Right are equal to Left.

#NameTypeDescription
1LeftDoublescalar
2RightVector

Returns: Boolean