Home | History | Annotate | Download | only in OrderingMethods

Lines Matching refs:Index

47   * \tparam  Index The type of indices of the matrix 
50 template <typename Index>
54 typedef PermutationMatrix<Dynamic, Dynamic, Index> PermutationType;
63 SparseMatrix<typename MatrixType::Scalar, ColMajor, Index> symm;
75 SparseMatrix<typename SrcType::Scalar, ColMajor, Index> C; C = mat;
91 * \tparam Index The type of indices of the matrix
93 template <typename Index>
97 typedef PermutationMatrix<Dynamic, Dynamic, Index> PermutationType;
114 template<typename Index>
118 typedef PermutationMatrix<Dynamic, Dynamic, Index> PermutationType;
119 typedef Matrix<Index, Dynamic, 1> IndexVector;
129 Index m = mat.rows();
130 Index n = mat.cols();
131 Index nnz = mat.nonZeros();
133 Index Alen = internal::colamd_recommended(nnz, m, n);
136 Index stats [COLAMD_STATS];
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];
143 Index info = internal::colamd(m, n, Alen, A.data(), p.data(), knobs, stats);
148 for (Index i = 0; i < n; i++) perm.indices()(p(i)) = i;