Lines Matching defs:m1
172 bool operator== (BaseMatrixImpl const& m1, BaseMatrixImpl const& m2)
174 if (m1.rows() != m2.rows() || m1.columns() != m2.columns()) return false;
176 for (size_t i = 0; i < m1.rows(); ++i)
177 for (size_t j = 0; j < m1.columns(); ++j)
178 if (m1(i,j) != m2(i,j)) return false;
424 void swap(Matrix & m1, Matrix & m2);
426 void swap_any(Matrix & m1, Matrix & m2);
433 void swap(Matrix & m1, Matrix & m2)
435 assert(m1.rows() == m2.rows() && m1.columns() == m2.columns());
437 swap(m1.m_matrix, m2.m_matrix);
440 inline void swap_any(Matrix &m1, Matrix &m2)
443 swap(m1.m_matrix, m2.m_matrix);
444 swap(m1.m_rows, m2.m_rows);
445 swap(m1.m_columns, m2.m_columns);
562 void swap_view(MatrixView & m1, MatrixView & m2);
571 void swap_view(MatrixView & m1, MatrixView & m2)
573 assert(m1.rows() == m2.rows() && m1.columns() == m2.columns());
575 swap(m1.m_matrix_view, m2.m_matrix_view);