Overload List
| # | Signature | Description |
|---|---|---|
| 1 | class operator Equal(const Left: TMtxVecInt; const Right: VectorInt): Boolean; | Returns true, if Left and Right are of equal Length and Values. |
| 2 | class operator Equal(const Left: VectorInt; const Right: TMtxVecInt): Boolean; | Returns true, if Left and Right are of equal Length and Values. |
| 3 | class operator Equal(const Left: VectorInt; const Right: VectorInt): Boolean; | Returns true, if Left and Right are of equal Length and Values. |
| 4 | class operator Equal(const Left: VectorInt; const Right: Integer): Boolean; | Returns true, if all elements of Left are equal to Right. |
| 5 | class operator Equal(const Left: Integer; const Right: VectorInt): Boolean; | Returns true, if all elements of Right are equal to Left. |
Overload 1: class operator Equal(const Left: TMtxVecInt; const Right: VectorInt): Boolean;
Returns true, if Left and Right are of equal Length and Values.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Left | TMtxVecInt | source TVecInt or TMtxInt |
| 2 | Right | VectorInt |
Returns: Boolean
Overload 2: class operator Equal(const Left: VectorInt; const Right: TMtxVecInt): Boolean;
Returns true, if Left and Right are of equal Length and Values.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Left | VectorInt | |
| 2 | Right | TMtxVecInt | source TVecInt or TMtxInt |
Returns: Boolean
Overload 3: class operator Equal(const Left: VectorInt; const Right: VectorInt): Boolean;
Returns true, if Left and Right are of equal Length and Values.
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: class operator Equal(const Left: VectorInt; const Right: Integer): Boolean;
Returns true, if all elements of Left are equal to Right.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Left | VectorInt | |
| 2 | Right | Integer |
Returns: Boolean
Overload 5: class operator Equal(const Left: Integer; const Right: VectorInt): Boolean;
Returns true, if all elements of Right are equal to Left.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Left | Integer | |
| 2 | Right | VectorInt |
Returns: Boolean