cheapEqualTo method

bool cheapEqualTo(
  1. Matrix other
)

Returns true if Matrix equals m, using an efficient comparison.

Returns false when the sign of zero values is the different; when one matrix has positive zero value and the other has negative zero value.

Returns true even when both Matrix contain NaN.

NaN never equals any value, including itself. To improve performance, NaN values are treated as bit patterns that are equal if their bit patterns are equal.

@param m Matrix to compare @return true if m and Matrix are represented by identical bit patterns

Implementation

bool cheapEqualTo(Matrix other) => c.mnn_cv_matrix_cheap_equal_to(ptr, other.ptr);