29#ifndef SPARSELU_COPY_TO_UCOL_H
30#define SPARSELU_COPY_TO_UCOL_H
49template <
typename Scalar,
typename StorageIndex>
53 Index ksub, krep, ksupno;
58 Index k = nseg - 1, i;
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);
90 dense(irow) = Scalar(0.0);
100 glu.
xusub(jcol + 1) = nextu;
A matrix or vector expression mapping an existing expression.
Definition: Ref.h:283
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.
Definition: SparseLU_copy_to_ucol.h:50
@ emptyIdxLU
Definition: SparseLU_Memory.h:38
@ USUB
Definition: SparseLU_Structs.h:74
@ UCOL
Definition: SparseLU_Structs.h:74
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
Definition: SparseLU_Structs.h:77
IndexVector usub
Definition: SparseLU_Structs.h:88
IndexVector xsup
Definition: SparseLU_Structs.h:79
Index nzumax
Definition: SparseLU_Structs.h:90
Index num_expansions
Definition: SparseLU_Structs.h:92
IndexVector supno
Definition: SparseLU_Structs.h:80
IndexVector lsub
Definition: SparseLU_Structs.h:82
IndexVector xusub
Definition: SparseLU_Structs.h:89
IndexVector xlsub
Definition: SparseLU_Structs.h:84
ScalarVector ucol
Definition: SparseLU_Structs.h:87