30#ifndef SPARSELU_PRUNEL_H
31#define SPARSELU_PRUNEL_H
52template <
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);
A matrix or vector expression mapping an existing expression.
Definition: Ref.h:283
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.
Definition: SparseLU_pruneL.h:53
@ 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
void swap(wpi::SmallPtrSet< T, N > &LHS, wpi::SmallPtrSet< T, N > &RHS)
Implement std::swap in terms of SmallPtrSet swap.
Definition: SmallPtrSet.h:512
Definition: SparseLU_Structs.h:77
IndexVector xsup
Definition: SparseLU_Structs.h:79
IndexVector xlusup
Definition: SparseLU_Structs.h:83
IndexVector supno
Definition: SparseLU_Structs.h:80
IndexVector lsub
Definition: SparseLU_Structs.h:82
IndexVector xlsub
Definition: SparseLU_Structs.h:84
ScalarVector lusup
Definition: SparseLU_Structs.h:81