示例#1
0
文件: Algos.hpp 项目: welcheb/codeare
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;
}
示例#2
0
文件: Algos.hpp 项目: welcheb/codeare
/**
 * @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();
}