VectorInt.op_Equality Operator

Overload List

#SignatureDescription
1Boolean op_Equality(TMtxVecInt Left, VectorInt Right)Returns true, if Left and Right are of equal Length and Values.
2Boolean op_Equality(VectorInt Left, TMtxVecInt Right)Returns true, if Left and Right are of equal Length and Values.
3Boolean op_Equality(VectorInt Left, VectorInt Right)Returns true, if Left and Right are of equal Length and Values.
4Boolean op_Equality(VectorInt Left, Int32 Right)Returns true, if all elements of Left are equal to Right.
5Boolean op_Equality(Int32 Left, VectorInt Right)Returns true, if all elements of Right are equal to Left.

Overload 1: Boolean op_Equality(TMtxVecInt Left, VectorInt Right)

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

#NameTypeDescription
1LeftTMtxVecIntsource TVecInt or TMtxInt
2RightVectorInt

Returns: Boolean

Overload 2: Boolean op_Equality(VectorInt Left, TMtxVecInt Right)

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

#NameTypeDescription
1LeftVectorInt
2RightTMtxVecIntsource TVecInt or TMtxInt

Returns: Boolean

Overload 3: Boolean op_Equality(VectorInt Left, VectorInt Right)

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

#NameTypeDescription
1LeftVectorInt
2RightVectorInt

Returns: Boolean

Remarks:
var a,b: VectorInt;
    c: TDoubleArray;
begin
    c := TDoubleArray.Create(1,1,1,1,1);
    TVecInt(a).CopyFromArray(c);
    TVecInt(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: TMtxVecInt.IsEqual

Overload 4: Boolean op_Equality(VectorInt Left, Int32 Right)

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

#NameTypeDescription
1LeftVectorInt
2RightInt32

Returns: Boolean

Overload 5: Boolean op_Equality(Int32 Left, VectorInt Right)

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

#NameTypeDescription
1LeftInt32
2RightVectorInt

Returns: Boolean