TMtxByte::Equal Method

bool Equal(TMtxInt *Mtx);

Compares two matrices.

#NameTypeDescription
1MtxTMtxInt *
Remarks:

Compares Mtx with the calling matrix and returns true if the matrices are equal (if all elements match in position and value). Tolerance defines the comparison tolerance. The maximum difference between elements may not exceed: +/-Tolerance. If Tolerance is omitted, a direct comparison algorithm is used.

Examples
#include "MtxVecInt.h"
#include "Units.MtxVecInt.h"

using namespace Dew;
using namespace Dew::Math;
using namespace Dew::Math::Units::MtxVecInt;

void Example()
{
    TMtxInt *A, *B;
    bool c;

    CreateIt(A, B);
    A->SetIt(2, 2, DewArray<int>{1, 2, 2, 4}); // 2x2, int matrix
    B->SetIt(2, 2, DewArray<int>{1, 2, 2, 4}); // 2x2, int matrix
    c = A->Equal(B); // Check for an exact match
    FreeIt(A, B);
}
Declared in Dew::Math::TMtxInt · Dew.Math/MtxVecInt.h · Cross-compiler