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++;
EIGEN_DEVICE_FUNC Derived & setZero(Index size)
void relax_snode(const Index n, IndexVector &et, const Index relax_columns, IndexVector &descendants, IndexVector &relax_end)
Identify the initial relaxed supernodes.
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
EIGEN_DEVICE_FUNC Derived & setConstant(Index size, const Scalar &val)