31 #ifndef SPARSELU_COLUMN_BMOD_H 32 #define SPARSELU_COLUMN_BMOD_H 52 template <
typename Scalar,
typename StorageIndex>
56 Index jsupno, k, ksub, krep, ksupno;
57 Index lptr, nrow, isub, irow, nextlu, new_next, ufirst;
58 Index fsupc, nsupc, nsupr, luptr, kfnz, no_zeros;
68 jsupno = glu.
supno(jcol);
75 for (ksub = 0; ksub < nseg; ksub++)
77 krep = segrep(k); k--;
78 ksupno = glu.
supno(krep);
79 if (jsupno != ksupno )
82 fsupc = glu.
xsup(ksupno);
83 fst_col = (
std::max)(fsupc, fpanelc);
87 d_fsupc = fst_col - fsupc;
89 luptr = glu.
xlusup(fst_col) + d_fsupc;
90 lptr = glu.
xlsub(fsupc) + d_fsupc;
95 segsize = krep - kfnz + 1;
96 nsupc = krep - fst_col + 1;
98 nrow = nsupr - d_fsupc - nsupc;
104 no_zeros = kfnz - fst_col;
113 nextlu = glu.
xlusup(jcol);
114 fsupc = glu.
xsup(jsupno);
118 new_next = nextlu + glu.
xlsub(fsupc + 1) - glu.
xlsub(fsupc);
122 while (new_next > glu.
nzlumax )
128 for (isub = glu.
xlsub(fsupc); isub < glu.
xlsub(fsupc+1); isub++)
130 irow = glu.
lsub(isub);
131 glu.
lusup(nextlu) = dense(irow);
132 dense(irow) =
Scalar(0.0);
138 glu.
lusup.segment(nextlu,offset).setZero();
141 glu.
xlusup(jcol + 1) = StorageIndex(nextlu);
149 fst_col = (
std::max)(fsupc, fpanelc);
155 d_fsupc = fst_col - fsupc;
157 lptr = glu.
xlsub(fsupc) + d_fsupc;
158 luptr = glu.
xlusup(fst_col) + d_fsupc;
159 nsupr = glu.
xlsub(fsupc+1) - glu.
xlsub(fsupc);
160 nsupc = jcol - fst_col;
161 nrow = nsupr - d_fsupc - nsupc;
164 ufirst = glu.
xlusup(jcol) + d_fsupc;
168 u =
A.template triangularView<UnitLower>().solve(u);
172 l.noalias() -=
A * u;
181 #endif // SPARSELU_COLUMN_BMOD_H
Index column_bmod(const Index jcol, const Index nseg, BlockScalarVector dense, ScalarVector &tempv, BlockIndexVector segrep, BlockIndexVector repfnz, Index fpanelc, GlobalLU_t &glu)
Performs numeric block updates (sup-col) in topological order.
A matrix or vector expression mapping an existing array of data.
set noclip points set clip one set noclip two set bar set border lt lw set xdata set ydata set zdata set x2data set y2data set boxwidth set dummy y set format x g set format y g set format x2 g set format y2 g set format z g set angles radians set nogrid set key title set key left top Right noreverse box linetype linewidth samplen spacing width set nolabel set noarrow set nologscale set logscale x set set pointsize set encoding default set nopolar set noparametric set set set set surface set nocontour set clabel set mapping cartesian set nohidden3d set cntrparam order set cntrparam linear set cntrparam levels auto set cntrparam points set size set set xzeroaxis lt lw set x2zeroaxis lt lw set yzeroaxis lt lw set y2zeroaxis lt lw set tics in set ticslevel set tics set mxtics default set mytics default set mx2tics default set my2tics default set xtics border mirror norotate autofreq set ytics border mirror norotate autofreq set ztics border nomirror norotate autofreq set nox2tics set noy2tics set timestamp bottom norotate offset
Namespace containing all symbols from the Eigen library.
static EIGEN_DONT_INLINE void run(const Index segsize, BlockScalarVector &dense, ScalarVector &tempv, ScalarVector &lusup, Index &luptr, const Index lda, const Index nrow, IndexVector &lsub, const Index lptr, const Index no_zeros)
Expression of a fixed-size or dynamic-size sub-vector.
static const Line3 l(Rot3(), 1, 1)
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
A matrix or vector expression mapping an existing expression.
The matrix class, also used for vectors and row-vectors.
Convenience specialization of Stride to specify only an outer stride See class Map for some examples...