inline static bool eq (const MatrixType<T>& A, const MatrixType<S>& B) { assert (A.Size() == B.Size()); for (size_t i = 0; i < A.Size(); ++i) if (A[i]!=B[i]) return false; return true; }
/** * @brief Get the number of matrix cells, i.e. dim_0*...*dim_16. * * @param M Matrix * @return Number of cells. */ template <class T, paradigm P> inline static size_t numel (const MatrixType<T,P>& M) { return M.Size(); }