28 #ifndef SPARSELU_RELAX_SNODE_H 29 #define SPARSELU_RELAX_SNODE_H 46 template <
typename Scalar,
typename Index>
54 for (j = 0; j < n; j++)
58 descendants(parent) += descendants(j) + 1;
66 while ( parent != n && descendants(parent) < relax_columns )
72 relax_end(snode_start) = j;
75 while (descendants(j) != 0 && j < n) j++;
iterative scaling algorithm to equilibrate rows and column norms in matrices
Derived & setZero(Index size)
Derived & setConstant(Index size, const Scalar &value)
void relax_snode(const Index n, IndexVector &et, const Index relax_columns, IndexVector &descendants, IndexVector &relax_end)
Identify the initial relaxed supernodes.