10 #ifndef EIGEN_SPARSELU_UTILS_H
11 #define EIGEN_SPARSELU_UTILS_H
22 template <
typename Scalar,
typename StorageIndex>
31 for (
i = 0;
i <= nsuper;
i++) {
33 jlen = glu.
xlsub(fsupc + 1) - glu.
xlsub(fsupc);
35 for (
j = fsupc;
j < glu.
xsup(
i + 1);
j++) {
37 nnzU +=
j - fsupc + 1;
50 template <
typename Scalar,
typename StorageIndex>
54 StorageIndex nextl = 0;
58 for (
i = 0;
i <= nsuper;
i++) {
60 jstart = glu.
xlsub(fsupc);
61 glu.
xlsub(fsupc) = nextl;
62 for (
j = jstart;
j < glu.
xlsub(fsupc + 1);
j++) {
66 for (
k = fsupc + 1;
k < glu.
xsup(
i + 1);
k++) glu.
xlsub(
k) = nextl;
int i
Definition: BiCGSTAB_step_by_step.cpp:9
const unsigned n
Definition: CG3DPackingUnitTest.cpp:11
void countnz(const Index n, Index &nnzL, Index &nnzU, GlobalLU_t &glu)
Count Nonzero elements in the factors.
Definition: SparseLU_Utils.h:23
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:51
char char char int int * k
Definition: level2_impl.h:374
Namespace containing all symbols from the Eigen library.
Definition: bench_norm.cpp:70
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Definition: Meta.h:83
Definition: Eigen_Colamd.h:49
Definition: SparseLU_Structs.h:80
IndexVector xsup
Definition: SparseLU_Structs.h:82
IndexVector supno
Definition: SparseLU_Structs.h:83
IndexVector lsub
Definition: SparseLU_Structs.h:85
IndexVector xusub
Definition: SparseLU_Structs.h:92
IndexVector xlsub
Definition: SparseLU_Structs.h:87
std::ptrdiff_t j
Definition: tut_arithmetic_redux_minmax.cpp:2