chsvlib
chsv helper source code

◆ operator==()

bool Chusov::Math::operator== ( const Matrix< Val, Alloc, Derived_t > &  left,
const Matrix< Val, Alloc, Derived_t > &  right 
)

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
Valis a type of elements held by matrices. The type must meet the EqualityComparable requirements.
Allocis a type of an allocator object used for managing a storage of the matrices elements.
Parameters
leftis a read-only reference to a Matrix <Val, Alloc> object, that along with right, constitute matrices to be compared.
rightis 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.