28 #ifndef SPARSELU_HEAP_RELAX_SNODE_H
29 #define SPARSELU_HEAP_RELAX_SNODE_H
45 template <
typename Scalar,
typename StorageIndex>
53 for (StorageIndex i = 0; i <
n+1; ++i) inv_post(post(i)) = i;
58 for (
Index i = 0; i <
n; ++i)
60 iwork(post(i)) = post(et(i));
69 for (j = 0; j <
n; j++)
73 descendants(parent) += descendants(j) + 1;
78 Index nsuper_et_post = 0;
85 while ( parent !=
n && descendants(parent) < relax_columns )
93 for (
Index i = snode_start; i <= j; ++i)
96 if ( (l - k) == (j - snode_start) )
104 for (
Index i = snode_start; i <= j; ++i)
107 if (descendants(i) == 0)
116 while (descendants(j) != 0 && j <
n) j++;
126 #endif // SPARSELU_HEAP_RELAX_SNODE_H