11 #ifndef EIGEN_ORDERING_H
12 #define EIGEN_ORDERING_H
29 template <
typename MatrixType>
33 for (
int i = 0;
i <
C.rows();
i++) {
34 for (
typename MatrixType::InnerIterator it(
C,
i); it; ++it) it.valueRef() =
typename MatrixType::Scalar(0);
49 template <
typename StorageIndex>
57 template <
typename MatrixType>
69 template <
typename SrcType,
unsigned int SrcUpLo>
88 template <
typename StorageIndex>
94 template <
typename MatrixType>
108 template <
typename StorageIndex>
117 template <
typename MatrixType>
120 "COLAMDOrdering requires a sparse matrix in compressed mode. Call .makeCompressed() before passing it "
121 "to COLAMDOrdering");
123 StorageIndex
m = StorageIndex(
mat.
rows());
124 StorageIndex
n = StorageIndex(
mat.
cols());
int i
Definition: BiCGSTAB_step_by_step.cpp:9
const unsigned n
Definition: CG3DPackingUnitTest.cpp:11
Eigen::SparseMatrix< double > mat
Definition: EigenUnitTest.cpp:10
#define EIGEN_UNUSED_VARIABLE(var)
Definition: Macros.h:966
#define eigen_assert(x)
Definition: Macros.h:910
float * p
Definition: Tutorial_Map_using.cpp:9
SCALAR Scalar
Definition: bench_gemm.cpp:45
Matrix< SCALARA, Dynamic, Dynamic, opt_A > A
Definition: bench_gemm.cpp:47
Matrix< Scalar, Dynamic, Dynamic > C
Definition: bench_gemm.cpp:49
MatrixXf MatrixType
Definition: benchmark-blocking-sizes.cpp:52
Definition: Ordering.h:50
void operator()(const SparseSelfAdjointView< SrcType, SrcUpLo > &mat, PermutationType &perm)
Definition: Ordering.h:70
PermutationMatrix< Dynamic, Dynamic, StorageIndex > PermutationType
Definition: Ordering.h:52
void operator()(const MatrixType &mat, PermutationType &perm)
Definition: Ordering.h:58
Definition: Ordering.h:109
void operator()(const MatrixType &mat, PermutationType &perm)
Definition: Ordering.h:118
Matrix< StorageIndex, Dynamic, 1 > IndexVector
Definition: Ordering.h:112
PermutationMatrix< Dynamic, Dynamic, StorageIndex > PermutationType
Definition: Ordering.h:111
The matrix class, also used for vectors and row-vectors.
Definition: Eigen/Eigen/src/Core/Matrix.h:186
Definition: Ordering.h:89
void operator()(const MatrixType &, PermutationType &perm)
Definition: Ordering.h:95
PermutationMatrix< Dynamic, Dynamic, StorageIndex > PermutationType
Definition: Ordering.h:91
void resize(Index newSize)
Definition: PermutationMatrix.h:119
const IndicesType & indices() const
Definition: PermutationMatrix.h:334
constexpr EIGEN_DEVICE_FUNC const Scalar * data() const
Definition: PlainObjectBase.h:273
Index nonZeros() const
Definition: SparseCompressedBase.h:64
Index cols() const
Definition: SparseMatrix.h:161
bool isCompressed() const
Definition: SparseCompressedBase.h:114
Index rows() const
Definition: SparseMatrix.h:159
const StorageIndex * outerIndexPtr() const
Definition: SparseMatrix.h:189
const StorageIndex * innerIndexPtr() const
Definition: SparseMatrix.h:180
Pseudo expression to manipulate a triangular sparse matrix as a selfadjoint matrix.
Definition: SparseSelfAdjointView.h:52
Definition: matrices.h:74
void ordering_helper_at_plus_a(const MatrixType &A, MatrixType &symmat)
Definition: Ordering.h:30
void minimum_degree_ordering(SparseMatrix< Scalar, ColMajor, StorageIndex > &C, PermutationMatrix< Dynamic, Dynamic, StorageIndex > &perm)
Definition: Amd.h:92
int * m
Definition: level2_cplx_impl.h:294
int info
Definition: level2_cplx_impl.h:39
Namespace containing all symbols from the Eigen library.
Definition: bench_norm.cpp:70
const int NKnobs
Definition: Eigen_Colamd.h:63
IndexType recommended(IndexType nnz, IndexType n_row, IndexType n_col)
Returns the recommended value of Alen.
Definition: Eigen_Colamd.h:267
static bool compute_ordering(IndexType n_row, IndexType n_col, IndexType Alen, IndexType *A, IndexType *p, double knobs[NKnobs], IndexType stats[NStats])
Computes a column ordering using the column approximate minimum degree ordering.
Definition: Eigen_Colamd.h:328
const int NStats
Definition: Eigen_Colamd.h:66
static void set_defaults(double knobs[NKnobs])
set default parameters The use of this routine is optional.
Definition: Eigen_Colamd.h:295
Definition: Eigen_Colamd.h:49
void symm(int size=Size, int othersize=OtherSize)
Definition: product_symm.cpp:13