11 #ifndef EIGEN_ORDERING_H    12 #define EIGEN_ORDERING_H    25 template<
typename MatrixType> 
    30   for (
int i = 0; i < C.rows(); i++) 
    32       for (
typename MatrixType::InnerIterator it(C, i); it; ++it)
    40 #ifndef EIGEN_MPL2_ONLY    50 template <
typename Index>
    59     template <
typename MatrixType>
    60     void operator()(
const MatrixType& mat, PermutationType& perm)
    72     template <
typename SrcType, 
unsigned int SrcUpLo> 
    75       SparseMatrix<typename SrcType::Scalar, ColMajor, Index> C; C = mat;
    83 #endif // EIGEN_MPL2_ONLY    93 template <
typename Index>
    97     typedef PermutationMatrix<Dynamic, Dynamic, Index> PermutationType;
   100     template <
typename MatrixType>
   114 template<
typename Index>
   122     template <
typename MatrixType>
   123     void operator() (
const MatrixType& mat, PermutationType& perm)
   126       Index n = mat.cols();
   127       Index nnz = mat.nonZeros();
   136       IndexVector p(n+1), A(Alen); 
   137       for(Index i=0; i <= n; i++)   p(i) = mat.outerIndexPtr()[i];
   138       for(Index i=0; i < nnz; i++)  A(i) = mat.innerIndexPtr()[i];
   144       for (Index i = 0; i < n; i++) perm.
indices()(p(i)) = i;
 
A versatible sparse matrix representation. 
static bool colamd(Index n_row, Index n_col, Index Alen, Index *A, Index *p, double knobs[COLAMD_KNOBS], Index stats[COLAMD_STATS])
Computes a column ordering using the column approximate minimum degree ordering. 
Matrix< Index, Dynamic, 1 > IndexVector
void operator()(const MatrixType &mat, PermutationType &perm)
Pseudo expression to manipulate a triangular sparse matrix as a selfadjoint matrix. 
void operator()(const SparseSelfAdjointView< SrcType, SrcUpLo > &mat, PermutationType &perm)
void operator()(const MatrixType &, PermutationType &perm)
EIGEN_STRONG_INLINE Index rows() const 
void minimum_degree_ordering(SparseMatrix< Scalar, ColMajor, Index > &C, PermutationMatrix< Dynamic, Dynamic, Index > &perm)
static void colamd_set_defaults(double knobs[COLAMD_KNOBS])
set default parameters The use of this routine is optional. 
PermutationMatrix< Dynamic, Dynamic, Index > PermutationType
const IndicesType & indices() const 
void ordering_helper_at_plus_a(const MatrixType &mat, MatrixType &symmat)
Index colamd_recommended(Index nnz, Index n_row, Index n_col)
Returns the recommended value of Alen. 
void resize(Index newSize)
PermutationMatrix< Dynamic, Dynamic, Index > PermutationType