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

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

Pascal
class operator Equal(const Left: MatrixInt; const Right: MatrixInt);
var a,b: MatrixInt; c: TDoubleArray; begin c := TDoubleArray.Create(1,1,1,1,1,0); a.Size(3,3); a.CopyFromArray(c); b.Copy(a); if a = b then ERaise('a and b are equal!'); if a = 1 then ERaise('a equals 1!'); //compare to real value end;
Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!