Checks two matrices for equality, that is if dimensions of the matrices are mutually equal, and if the elements of the matrices are equal to one another. .
- Template Parameters
-
Val | is a type of elements held by matrices. The type must meet the EqualityComparable requirements. |
Alloc | is a type of an allocator object used for managing a storage of the matrices elements. |
- Parameters
-
left | is a read-only reference to a Matrix <Val, Alloc> object, that along with right , constitute matrices to be compared. |
right | is a read-only reference to a Matrix <Val, Alloc> object, that along with left , constitute matrices to be compared. |
- Returns
- If both matrices have equal numbers of columns and equal numbers of rows, and if elements of both matrices are equal to each other with respect to their position, the return value is
true
. Otherwise, the operator returns false
.
- Examples
- chsvmath\algebraic_traits.cpp.