28#ifndef SPARSELU_RELAX_SNODE_H
29#define SPARSELU_RELAX_SNODE_H
46template <
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)
Resizes to the given size, and sets all coefficients in this expression to zero.
Definition: CwiseNullaryOp.h:562
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:361
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
@ emptyIdxLU
Definition: SparseLU_Memory.h:38
Namespace containing all symbols from the Eigen library.
Definition: Core:141
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Definition: Meta.h:74
Definition: Eigen_Colamd.h:50