Lines Matching refs:mat
26 void ordering_helper_at_plus_a(const MatrixType& mat, MatrixType& symmat)
29 C = mat.transpose(); // NOTE: Could be costly
35 symmat = C + mat;
60 void operator()(const MatrixType& mat, PermutationType& perm)
64 internal::ordering_helper_at_plus_a(mat,symm);
73 void operator()(const SparseSelfAdjointView<SrcType, SrcUpLo>& mat, PermutationType& perm)
75 SparseMatrix<typename SrcType::Scalar, ColMajor, Index> C; C = mat;
101 void operator()(const MatrixType& /*mat*/, PermutationType& perm)
121 /** Compute the permutation vector \a perm form the sparse matrix \a mat
122 * \warning The input sparse matrix \a mat must be in compressed mode (see SparseMatrix::makeCompressed()).
125 void operator() (const MatrixType& mat, PermutationType& perm)
127 eigen_assert(mat.isCompressed() && "COLAMDOrdering requires a sparse matrix in compressed mode. Call .makeCompressed() before passing it to COLAMDOrdering");
129 Index m = mat.rows();
130 Index n = mat.cols();
131 Index nnz = mat.nonZeros();
140 for(Index i=0; i <= n; i++) p(i) = mat.outerIndexPtr()[i];
141 for(Index i=0; i < nnz; i++) A(i) = mat.innerIndexPtr()[i];