28 #ifndef SPARSELU_RELAX_SNODE_H 29 #define SPARSELU_RELAX_SNODE_H 46 template <
typename Scalar,
typename StorageIndex>
54 for (
Index j = 0; j < n; j++)
58 descendants(parent) += descendants(j) + 1;
62 for (
Index j = 0; j < n; )
66 while ( parent != n && descendants(parent) < relax_columns )
72 relax_end(snode_start) = StorageIndex(j);
75 while (descendants(j) != 0 && j < n) j++;
void relax_snode(const Index n, IndexVector &et, const Index relax_columns, IndexVector &descendants, IndexVector &relax_end)
Identify the initial relaxed supernodes.
Definition: SparseLU_relax_snode.h:47
Namespace containing all symbols from the Eigen library.
Definition: bench_norm.cpp:85
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Definition: Meta.h:33
EIGEN_DEVICE_FUNC Derived & setZero(Index size)
Resizes to the given size, and sets all coefficients in this expression to zero.
Definition: CwiseNullaryOp.h:515
EIGEN_DEVICE_FUNC Derived & setConstant(Index size, const Scalar &val)
Resizes to the given size, and sets all coefficients in this expression to the given value val...
Definition: CwiseNullaryOp.h:341
Definition: BandTriangularSolver.h:13
The matrix class, also used for vectors and row-vectors.
Definition: Matrix.h:178