You are here: Symbol Reference > MtxExpr Namespace > Classes > Vector Record > public > Equal Operator > Vector.Equal Operator (Vector, Vector)
MtxVec VCL
ContentsIndex
PreviousUpNext
Vector.Equal Operator (Vector, Vector)

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

Pascal
class operator Equal(const Left: Vector; const Right: Vector);
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;
Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!