function Equal(const Mtx: TMtxInt): Boolean;
Compares two matrices.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Mtx | TMtxInt |
Returns: Boolean
Remarks:
Compares Mtx with the calling matrix and returns true if the matrices are equal (if all elements match in position and value).
Examples
var A,B: MatrixInt;
c: boolean;
begin
A := [[1,2],[2,4]]; // 2x2, int matrix
B := [[1,2],[2,4]]; // 2x2, int matrix
c := A.Equal(B); // Check for an exact match
end;