Mathter
A configurable 3D math library for game developers.
MatrixCompare.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include "MatrixImpl.hpp"
4 
5 namespace mathter {
6 
7 template <int Rows, int Columns, class T1, class T2, eMatrixOrder Order1, eMatrixOrder Order2, eMatrixLayout Layout1, eMatrixLayout Layout2, bool Packed1, bool Packed2>
9  bool equal = true;
10  for (int i = 0; i < Rows; ++i) {
11  for (int j = 0; j < Columns; ++j) {
12  equal = equal && lhs(i, j) == rhs(i, j);
13  }
14  }
15  return equal;
16 }
17 
18 template <int Rows, int Columns, class T1, class T2, eMatrixOrder Order1, eMatrixOrder Order2, eMatrixLayout Layout1, eMatrixLayout Layout2, bool Packed1, bool Packed2>
20  return !(lhs == rhs);
21 }
22 
23 
24 } // namespace mathter
bool operator!=(const Matrix< T1, Rows, Columns, Order1, Layout1, Packed1 > &lhs, const Matrix< T2, Rows, Columns, Order2, Layout2, Packed2 > &rhs)
Definition: MatrixCompare.hpp:19
bool operator==(const ApproxHelper< LinalgClass1 > &lhs, const LinalgClass2 &rhs)
Definition: Approx.hpp:92
Definition: Approx.hpp:11
Definition: Definitions.hpp:63