91 Index maxsuper,
Index& nseg, BlockIndexVector lsub_col,
92 IndexVector& segrep, BlockIndexVector repfnz, IndexVector& xprune,
93 IndexVector& marker, IndexVector& parent, IndexVector& xplore,
95 Index jsuper = glu.supno(jcol);
96 Index nextl = glu.xlsub(jcol);
99 column_dfs_traits<IndexVector, ScalarVector> traits(jcol, jsuper, glu, *
this);
102 for (
Index k = 0; ((k < m) ? lsub_col[k] != emptyIdxLU :
false); k++) {
103 Index krow = lsub_col(k);
104 lsub_col(k) = emptyIdxLU;
105 Index kmark = marker2(krow);
108 if (kmark == jcol)
continue;
110 dfs_kernel(StorageIndex(jcol), perm_r, nseg, glu.lsub, segrep, repfnz, xprune, marker2, parent, xplore, glu, nextl,
115 StorageIndex nsuper = glu.supno(jcol);
116 StorageIndex jcolp1 = StorageIndex(jcol) + 1;
117 Index jcolm1 = jcol - 1;
121 nsuper = glu.supno(0) = 0;
123 fsupc = glu.xsup(nsuper);
124 StorageIndex jptr = glu.xlsub(jcol);
125 StorageIndex jm1ptr = glu.xlsub(jcolm1);
128 if ((nextl - jptr != jptr - jm1ptr - 1)) jsuper = emptyIdxLU;
132 if ((jcol - fsupc) >= maxsuper) jsuper = emptyIdxLU;
139 if (jsuper == emptyIdxLU) {
140 if ((fsupc < jcolm1 - 1)) {
141 StorageIndex ito = glu.xlsub(fsupc + 1);
142 glu.xlsub(jcolm1) = ito;
143 StorageIndex istop = ito + jptr - jm1ptr;
144 xprune(jcolm1) = istop;
145 glu.xlsub(jcol) = istop;
147 for (StorageIndex ifrom = jm1ptr; ifrom < nextl; ++ifrom, ++ito) glu.lsub(ito) = glu.lsub(ifrom);
151 glu.supno(jcol) = nsuper;
156 glu.xsup(nsuper + 1) = jcolp1;
157 glu.supno(jcolp1) = nsuper;
158 xprune(jcol) = StorageIndex(nextl);
159 glu.xlsub(jcolp1) = StorageIndex(nextl);