28#ifndef SPARSELU_RELAX_SNODE_H
29#define SPARSELU_RELAX_SNODE_H
32#include "./InternalHeaderCheck.h"
49template <
typename Scalar,
typename StorageIndex>
50void SparseLUImpl<Scalar, StorageIndex>::relax_snode(
const Index n, IndexVector& et,
const Index relax_columns,
51 IndexVector& descendants, IndexVector& relax_end) {
54 relax_end.setConstant(emptyIdxLU);
55 descendants.setZero();
56 for (Index j = 0; j < n; j++) {
59 descendants(parent) += descendants(j) + 1;
63 for (Index j = 0; j < n;) {
66 while (parent != n && descendants(parent) < relax_columns) {
71 relax_end(snode_start) = StorageIndex(j);
74 while (descendants(j) != 0 && j < n) j++;
Namespace containing all symbols from the Eigen library.
Definition Core:137