11 #ifndef EIGEN_SPARSELU_UTILS_H
12 #define EIGEN_SPARSELU_UTILS_H
22 template <
typename Scalar,
typename StorageIndex>
26 nnzU = (glu.xusub)(
n);
27 Index nsuper = (glu.supno)(
n);
32 for (
i = 0;
i <= nsuper;
i++)
35 jlen = glu.xlsub(fsupc+1) - glu.xlsub(fsupc);
37 for (
j = fsupc;
j < glu.xsup(
i+1);
j++)
40 nnzU +=
j - fsupc + 1;
53 template <
typename Scalar,
typename StorageIndex>
58 StorageIndex nextl = 0;
59 Index nsuper = (glu.supno)(
n);
62 for (
i = 0;
i <= nsuper;
i++)
65 jstart = glu.xlsub(fsupc);
66 glu.xlsub(fsupc) = nextl;
67 for (
j = jstart;
j < glu.xlsub(fsupc + 1);
j++)
69 glu.lsub(nextl) = perm_r(glu.lsub(
j));
72 for (k = fsupc+1; k < glu.xsup(
i+1); k++)
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.