Boolean Equal(TMtxInt Mtx)
Compares two matrices.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Mtx | TMtxInt | source 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
TMtxInt A;
TMtxInt B;
boolean c;
MtxVec.CreateIt(out A, out B);
try
{
A.SetIt(2,2,prInt32, [1,2,
2,4]); // 2x2, int matrix
B.SetIt(2,2,prInt32, [1,2,
2,4]); // 2x2, real matrix
c = A.Equal(B); // Check for an exact match
}
finally
{
MtxVec.FreeIt(ref A, ref B);
}