Vector::operator== Operator

Overload List

#SignatureDescription
1bool operator==(const Vector &Left, const Vector &Right);Returns true, if Left and Right are of equal Length and Values.
2bool operator==(const Vector &Left, double Right);Returns true, if all elements of Left are equal to Right.
3bool operator==(double Left, const Vector &Right);Returns true, if all elements of Right are equal to Left.
4bool operator==(const Vector &Left, const TCplx &Right);Returns true, if all elements of Left are equal to Right.
5bool operator==(const TCplx &Left, const Vector &Right);Returns true, if all elements of Right are equal to Left.
6bool operator==(TMtxVec *Left, const Vector &Right);Returns true, if Left and Right are of equal Length and Values.
7bool operator==(TVec *Left, const Vector &Right);Returns true, if Left and Right are of equal Length and Values.
8bool operator==(const Vector &Left, TMtxVec *Right);Returns true, if Left and Right are of equal Length and Values.
9bool operator==(const Vector &Left, TVec *Right);Returns true, if Left and Right are of equal Length and Values.
10bool operator==(const Vector &Left, const Matrix &Right);Returns true, if Left and Right are of equal Length and Values.

Overload 1: bool operator==(const Vector &Left, const Vector &Right);

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

#NameTypeDescription
1Leftconst Vector &
2Rightconst Vector &
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
Declared in Dew::Math · Dew.Math/MtxExpr.h · Cross-compiler

Overload 2: bool operator==(const Vector &Left, double Right);

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

#NameTypeDescription
1Leftconst Vector &
2Rightdouble
Declared in Dew::Math · Dew.Math/MtxExpr.h · Cross-compiler

Overload 3: bool operator==(double Left, const Vector &Right);

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

#NameTypeDescription
1Leftdouble
2Rightconst Vector &
Declared in Dew::Math · Dew.Math/MtxExpr.h · Cross-compiler

Overload 4: bool operator==(const Vector &Left, const TCplx &Right);

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

#NameTypeDescription
1Leftconst Vector &
2Rightconst TCplx &
Declared in Dew::Math · Dew.Math/MtxExpr.h · Cross-compiler

Overload 5: bool operator==(const TCplx &Left, const Vector &Right);

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

#NameTypeDescription
1Leftconst TCplx &
2Rightconst Vector &
Declared in Dew::Math · Dew.Math/MtxExpr.h · Cross-compiler

Overload 6: bool operator==(TMtxVec *Left, const Vector &Right);

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

#NameTypeDescription
1LeftTMtxVec *
2Rightconst Vector &
Declared in Dew::Math · Dew.Math/MtxExpr.h · Cross-compiler

Overload 7: bool operator==(TVec *Left, const Vector &Right);

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

#NameTypeDescription
1LeftTVec *
2Rightconst Vector &
Declared in Dew::Math · Dew.Math/MtxExpr.h · Cross-compiler

Overload 8: bool operator==(const Vector &Left, TMtxVec *Right);

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

#NameTypeDescription
1Leftconst Vector &
2RightTMtxVec *
Declared in Dew::Math · Dew.Math/MtxExpr.h · Cross-compiler

Overload 9: bool operator==(const Vector &Left, TVec *Right);

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

#NameTypeDescription
1Leftconst Vector &
2RightTVec *
Declared in Dew::Math · Dew.Math/MtxExpr.h · Cross-compiler

Overload 10: bool operator==(const Vector &Left, const Matrix &Right);

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

#NameTypeDescription
1Leftconst Vector &
2Rightconst Matrix &
Declared in Dew::Math · Dew.Math/MtxExpr.h · Cross-compiler