29 #ifndef SPARSELU_COPY_TO_UCOL_H 30 #define SPARSELU_COPY_TO_UCOL_H 49 template <
typename Scalar,
typename StorageIndex>
53 Index ksub, krep, ksupno;
59 StorageIndex nextu = glu.
xusub(jcol);
60 Index kfnz, isub, segsize;
63 for (ksub = 0; ksub < nseg; ksub++)
65 krep = segrep(k); k--;
66 ksupno = glu.
supno(krep);
67 if (jsupno != ksupno )
72 fsupc = glu.
xsup(ksupno);
73 isub = glu.
xlsub(fsupc) + kfnz - fsupc;
74 segsize = krep - kfnz + 1;
75 new_next = nextu + segsize;
76 while (new_next > glu.
nzumax)
85 for (i = 0; i < segsize; i++)
87 irow = glu.
lsub(isub);
88 glu.
usub(nextu) = perm_r(irow);
89 glu.
ucol(nextu) = dense(irow);
100 glu.
xusub(jcol + 1) = nextu;
107 #endif // SPARSELU_COPY_TO_UCOL_H
Index copy_to_ucol(const Index jcol, const Index nseg, IndexVector &segrep, BlockIndexVector repfnz, IndexVector &perm_r, BlockScalarVector dense, GlobalLU_t &glu)
Performs numeric block updates (sup-col) in topological order.
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.
The matrix class, also used for vectors and row-vectors.