27 Index nsuper = glu.supno(n);
32 for (i = 0; i <= nsuper; i++) {
34 jlen = glu.xlsub(fsupc + 1) - glu.xlsub(fsupc);
36 for (j = fsupc; j < glu.xsup(i + 1); j++) {
38 nnzU += j - fsupc + 1;
53 Index fsupc, i, j, k, jstart;
55 StorageIndex nextl = 0;
56 Index nsuper = glu.supno(n);
59 for (i = 0; i <= nsuper; i++) {
61 jstart = glu.xlsub(fsupc);
62 glu.xlsub(fsupc) = nextl;
63 for (j = jstart; j < glu.xlsub(fsupc + 1); j++) {
64 glu.lsub(nextl) = perm_r(glu.lsub(j));
67 for (k = fsupc + 1; k < glu.xsup(i + 1); k++) glu.xlsub(k) = nextl;
void fixupL(const Index n, const IndexVector &perm_r, GlobalLU_t &glu)
Fix up the data storage lsub for L-subscripts.
Definition SparseLU_Utils.h:52
void countnz(const Index n, Index &nnzL, Index &nnzU, GlobalLU_t &glu)
Count Nonzero elements in the factors.
Definition SparseLU_Utils.h:24