30 #ifndef SPARSELU_PRUNEL_H 31 #define SPARSELU_PRUNEL_H 52 template <
typename Scalar,
typename StorageIndex>
59 bool movnum, do_prune =
false;
60 Index kmin = 0, kmax = 0, minloc, maxloc,krow;
61 for (i = 0; i < nseg; i++)
73 if (glu.
supno(irep) == glu.
supno(irep1) )
continue;
76 if (glu.
supno(irep) != jsupno )
78 if ( xprune (irep) >= glu.
xlsub(irep1) )
80 kmin = glu.
xlsub(irep);
81 kmax = glu.
xlsub(irep1) - 1;
82 for (krow = kmin; krow <= kmax; krow++)
84 if (glu.
lsub(krow) == pivrow)
118 minloc = glu.
xlusup(irep) + ( kmin - glu.
xlsub(irep) );
119 maxloc = glu.
xlusup(irep) + ( kmax - glu.
xlsub(irep) );
127 xprune(irep) = StorageIndex(kmin);
136 #endif // SPARSELU_PRUNEL_H
void pruneL(const Index jcol, const IndexVector &perm_r, const Index pivrow, const Index nseg, const IndexVector &segrep, BlockIndexVector repfnz, IndexVector &xprune, GlobalLU_t &glu)
Prunes the L-structure.
Namespace containing all symbols from the Eigen library.
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
A matrix or vector expression mapping an existing expression.
void swap(mpfr::mpreal &x, mpfr::mpreal &y)