| 54 | |
| 55 | template <typename U> |
| 56 | bool Equal(Matrix<U, Rows, Cols> const & m, T eps = 0.0001) const |
| 57 | { |
| 58 | for (size_t i = 0; i < Rows; ++i) |
| 59 | for (size_t j = 0; j < Cols; ++j) |
| 60 | if (Abs(m_data[i * Cols + j] - m(i, j)) > eps) |
| 61 | return false; |
| 62 | |
| 63 | return true; |
| 64 | } |
| 65 | |
| 66 | template <typename U> |
| 67 | bool operator!=(Matrix<U, Rows, Cols> const & m) const |