if (graphene_matrix_equal_fast (a, b))
{
// matrices are definitely the same
}
else
{
if (graphene_matrix_equal (a, b))
// matrices contain the same values within an epsilon of FLT_EPSILONelseif (graphene_matrix_near (a, b, 0.0001))
// matrices contain the same values within an epsilon of 0.0001else// matrices are not equal
}
Checks whether the two given #graphene_matrix_t matrices are byte-by-byte equal.
While this function is faster than graphene.matrix.Matrix.equal, it can also return false negatives, so it should be used in conjuction with either graphene.matrix.Matrix.equal or graphene.matrix.Matrix.near. For instance: