// L============================================================================= // L This software is distributed under the MIT license. // L Copyright 2021 Péter Kardos // L============================================================================= #pragma once #include "MatrixImpl.hpp" namespace mathter { template bool operator==(const Matrix& lhs, const Matrix& rhs) { bool equal = true; for (int i = 0; i < Rows; ++i) { for (int j = 0; j < Columns; ++j) { equal = equal && lhs(i, j) == rhs(i, j); } } return equal; } template bool operator!=(const Matrix& lhs, const Matrix& rhs) { return !(lhs == rhs); } } // namespace mathter