9 #ifndef SPARSELU_IMPL_H
10 #define SPARSELU_IMPL_H
21 template <
typename Scalar,
typename StorageIndex>
25 typedef Matrix<Scalar,Dynamic,1> ScalarVector;
26 typedef Matrix<StorageIndex,Dynamic,1> IndexVector;
27 typedef Matrix<Scalar,Dynamic,Dynamic,ColMajor> ScalarMatrix;
28 typedef Map<ScalarMatrix, 0, OuterStride<> > MappedMatrixBlock;
30 typedef Ref<Matrix<Scalar,Dynamic,1> > BlockScalarVector;
31 typedef Ref<Matrix<StorageIndex,Dynamic,1> > BlockIndexVector;
32 typedef LU_GlobalLU_t<IndexVector, ScalarVector> GlobalLU_t;
33 typedef SparseMatrix<Scalar,ColMajor,StorageIndex>
MatrixType;
36 template <
typename VectorType>
39 template <
typename VectorType>
41 void heap_relax_snode (
const Index n, IndexVector& et,
const Index relax_columns, IndexVector& descendants, IndexVector& relax_end);
42 void relax_snode (
const Index n, IndexVector& et,
const Index relax_columns, IndexVector& descendants, IndexVector& relax_end);
44 Index snode_bmod (
const Index jcol,
const Index fsupc, ScalarVector& dense, GlobalLU_t& glu);
45 Index pivotL(
const Index jcol,
const RealScalar& diagpivotthresh, IndexVector& perm_r, IndexVector& iperm_c,
Index& pivrow, GlobalLU_t& glu);
46 template <
typename Traits>
47 void dfs_kernel(
const StorageIndex jj, IndexVector& perm_r,
48 Index& nseg, IndexVector& panel_lsub, IndexVector& segrep,
49 Ref<IndexVector> repfnz_col, IndexVector& xprune, Ref<IndexVector> marker, IndexVector& parent,
50 IndexVector& xplore, GlobalLU_t& glu,
Index& nextl_col,
Index krow, Traits& traits);
51 void panel_dfs(
const Index m,
const Index w,
const Index jcol,
MatrixType&
A, IndexVector& perm_r,
Index& nseg, ScalarVector& dense, IndexVector& panel_lsub, IndexVector& segrep, IndexVector& repfnz, IndexVector& xprune, IndexVector& marker, IndexVector& parent, IndexVector& xplore, GlobalLU_t& glu);
53 void panel_bmod(
const Index m,
const Index w,
const Index jcol,
const Index nseg, ScalarVector& dense, ScalarVector& tempv, IndexVector& segrep, IndexVector& repfnz, GlobalLU_t& glu);
54 Index column_dfs(
const Index m,
const Index jcol, IndexVector& perm_r,
Index maxsuper,
Index& nseg, BlockIndexVector lsub_col, IndexVector& segrep, BlockIndexVector repfnz, IndexVector& xprune, IndexVector& marker, IndexVector& parent, IndexVector& xplore, GlobalLU_t& glu);
55 Index column_bmod(
const Index jcol,
const Index nseg, BlockScalarVector dense, ScalarVector& tempv, BlockIndexVector segrep, BlockIndexVector repfnz,
Index fpanelc, GlobalLU_t& glu);
56 Index copy_to_ucol(
const Index jcol,
const Index nseg, IndexVector& segrep, BlockIndexVector repfnz ,IndexVector& perm_r, BlockScalarVector dense, GlobalLU_t& glu);
57 void pruneL(
const Index jcol,
const IndexVector& perm_r,
const Index pivrow,
const Index nseg,
const IndexVector& segrep, BlockIndexVector repfnz, IndexVector& xprune, GlobalLU_t& glu);
59 void fixupL(
const Index n,
const IndexVector& perm_r, GlobalLU_t& glu);
61 template<
typename ,
typename >
62 friend struct column_dfs_traits;
Matrix< float, 1, Dynamic > MatrixType
NumTraits< Scalar >::Real RealScalar
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.