![]() |
|
Incomplete LU factorization with dual-threshold strategy. More...
#include <IncompleteLUT.h>
Inheritance diagram for Eigen::IncompleteLUT< Scalar_, StorageIndex_ >:Classes | |
| struct | keep_diag |
Public Types | |
| enum | { ColsAtCompileTime = Dynamic , MaxColsAtCompileTime = Dynamic } |
| typedef Scalar_ | Scalar |
| typedef StorageIndex_ | StorageIndex |
| typedef NumTraits< Scalar >::Real | RealScalar |
| typedef Matrix< Scalar, Dynamic, 1 > | Vector |
| typedef Matrix< StorageIndex, Dynamic, 1 > | VectorI |
| typedef SparseMatrix< Scalar, RowMajor, StorageIndex > | FactorType |
Public Member Functions | |
| IncompleteLUT () | |
| template<typename MatrixType > | |
| IncompleteLUT (const MatrixType &mat, const RealScalar &droptol=NumTraits< Scalar >::dummy_precision(), int fillfactor=10) | |
| EIGEN_CONSTEXPR Index | rows () const EIGEN_NOEXCEPT |
| EIGEN_CONSTEXPR Index | cols () const EIGEN_NOEXCEPT |
| ComputationInfo | info () const |
| Reports whether previous computation was successful. More... | |
| template<typename MatrixType > | |
| void | analyzePattern (const MatrixType &amat) |
| template<typename MatrixType > | |
| void | factorize (const MatrixType &amat) |
| template<typename MatrixType > | |
| IncompleteLUT & | compute (const MatrixType &amat) |
| void | setDroptol (const RealScalar &droptol) |
| void | setFillfactor (int fillfactor) |
| template<typename Rhs , typename Dest > | |
| void | _solve_impl (const Rhs &b, Dest &x) const |
| template<typename MatrixType_ > | |
| void | analyzePattern (const MatrixType_ &amat) |
| template<typename MatrixType_ > | |
| void | factorize (const MatrixType_ &amat) |
Public Member Functions inherited from Eigen::SparseSolverBase< IncompleteLUT< Scalar_, int > > | |
| SparseSolverBase () | |
| SparseSolverBase (SparseSolverBase &&other) | |
| ~SparseSolverBase () | |
| IncompleteLUT< Scalar_, int > & | derived () |
| const IncompleteLUT< Scalar_, int > & | derived () const |
| const Solve< IncompleteLUT< Scalar_, int >, Rhs > | solve (const MatrixBase< Rhs > &b) const |
| const Solve< IncompleteLUT< Scalar_, int >, Rhs > | solve (const SparseMatrixBase< Rhs > &b) const |
| void | _solve_impl (const SparseMatrixBase< Rhs > &b, SparseMatrixBase< Dest > &dest) const |
Protected Types | |
| typedef SparseSolverBase< IncompleteLUT > | Base |
Protected Attributes | |
| FactorType | m_lu |
| RealScalar | m_droptol |
| int | m_fillfactor |
| bool | m_analysisIsOk |
| bool | m_factorizationIsOk |
| ComputationInfo | m_info |
| PermutationMatrix< Dynamic, Dynamic, StorageIndex > | m_P |
| PermutationMatrix< Dynamic, Dynamic, StorageIndex > | m_Pinv |
| bool | m_isInitialized |
Protected Attributes inherited from Eigen::SparseSolverBase< IncompleteLUT< Scalar_, int > > | |
| bool | m_isInitialized |
Incomplete LU factorization with dual-threshold strategy.
\implsparsesolverconcept
During the numerical factorization, two dropping rules are used : 1) any element whose magnitude is less than some tolerance is dropped. This tolerance is obtained by multiplying the input tolerance droptol by the average magnitude of all the original elements in the current row. 2) After the elimination of the row, only the fill largest elements in the L part and the fill largest elements in the U part are kept (in addition to the diagonal element ). Note that fill is computed from the input parameter fillfactor which is used the ratio to control the fill_in relatively to the initial number of nonzero elements.
The two extreme cases are when droptol=0 (to keep all the fill*2 largest elements) and when fill=n/2 with droptol being different to zero.
References : Yousef Saad, ILUT: A dual threshold incomplete LU factorization, Numerical Linear Algebra with Applications, 1(4), pp 387-402, 1994.
NOTE : The following implementation is derived from the ILUT implementation in the SPARSKIT package, Copyright (C) 2005, the Regents of the University of Minnesota released under the terms of the GNU LGPL: http://www-users.cs.umn.edu/~saad/software/SPARSKIT/README However, Yousef Saad gave us permission to relicense his ILUT code to MPL2. See the Eigen mailing list archive, thread: ILUT, date: July 8, 2012: http://listengine.tuxfamily.org/lists.tuxfamily.org/eigen/2012/07/msg00064.html alternatively, on GMANE: http://comments.gmane.org/gmane.comp.lib.eigen/3302
|
protected |
| typedef SparseMatrix<Scalar, RowMajor, StorageIndex> Eigen::IncompleteLUT< Scalar_, StorageIndex_ >::FactorType |
| typedef NumTraits<Scalar>::Real Eigen::IncompleteLUT< Scalar_, StorageIndex_ >::RealScalar |
| typedef Scalar_ Eigen::IncompleteLUT< Scalar_, StorageIndex_ >::Scalar |
| typedef StorageIndex_ Eigen::IncompleteLUT< Scalar_, StorageIndex_ >::StorageIndex |
| typedef Matrix<Scalar, Dynamic, 1> Eigen::IncompleteLUT< Scalar_, StorageIndex_ >::Vector |
| typedef Matrix<StorageIndex, Dynamic, 1> Eigen::IncompleteLUT< Scalar_, StorageIndex_ >::VectorI |
| anonymous enum |
|
inline |
|
inlineexplicit |
References Eigen::IncompleteLUT< Scalar_, StorageIndex_ >::compute(), and eigen_assert.
|
inline |
References b, Eigen::IncompleteLUT< Scalar_, StorageIndex_ >::m_lu, Eigen::IncompleteLUT< Scalar_, StorageIndex_ >::m_P, Eigen::IncompleteLUT< Scalar_, StorageIndex_ >::m_Pinv, and plotDoE::x.
| void Eigen::IncompleteLUT< Scalar_, StorageIndex_ >::analyzePattern | ( | const MatrixType & | amat | ) |
Referenced by Eigen::IncompleteLUT< Scalar_, StorageIndex_ >::compute().
| void Eigen::IncompleteLUT< Scalar_, StorageIndex_ >::analyzePattern | ( | const MatrixType_ & | amat | ) |
References mat1(), and Eigen::SparseMatrixBase< Derived >::transpose().
|
inline |
References Eigen::SparseMatrix< Scalar_, Options_, StorageIndex_ >::cols(), and Eigen::IncompleteLUT< Scalar_, StorageIndex_ >::m_lu.
Referenced by gdb.printers._MatrixEntryIterator::__next__(), gdb.printers.EigenMatrixPrinter::children(), gdb.printers.EigenSparseMatrixPrinter::children(), gdb.printers.EigenMatrixPrinter::to_string(), and gdb.printers.EigenSparseMatrixPrinter::to_string().
|
inline |
Compute an incomplete LU factorization with dual threshold on the matrix mat No pivoting is done in this version
References Eigen::IncompleteLUT< Scalar_, StorageIndex_ >::analyzePattern(), and Eigen::IncompleteLUT< Scalar_, StorageIndex_ >::factorize().
Referenced by Eigen::IncompleteLUT< Scalar_, StorageIndex_ >::IncompleteLUT().
| void Eigen::IncompleteLUT< Scalar_, StorageIndex_ >::factorize | ( | const MatrixType & | amat | ) |
Referenced by Eigen::IncompleteLUT< Scalar_, StorageIndex_ >::compute().
| void Eigen::IncompleteLUT< Scalar_, StorageIndex_ >::factorize | ( | const MatrixType_ & | amat | ) |
References abs(), Eigen::numext::abs2(), Eigen::internal::convert_index(), eigen_assert, eigen_internal_assert, j, k, min, n, Eigen::NumericalIssue, Eigen::prod(), Eigen::internal::QuickSplit(), sqrt(), Eigen::Success, Eigen::swap(), swap(), and Eigen::SparseMatrixBase< Derived >::twistedBy().
|
inline |
Reports whether previous computation was successful.
Success if computation was successful, NumericalIssue if the matrix.appears to be negative. References eigen_assert, Eigen::IncompleteLUT< Scalar_, StorageIndex_ >::m_info, and Eigen::IncompleteLUT< Scalar_, StorageIndex_ >::m_isInitialized.
|
inline |
References Eigen::IncompleteLUT< Scalar_, StorageIndex_ >::m_lu, and Eigen::SparseMatrix< Scalar_, Options_, StorageIndex_ >::rows().
Referenced by gdb.printers._MatrixEntryIterator::__next__(), gdb.printers.EigenMatrixPrinter::children(), gdb.printers.EigenSparseMatrixPrinter::children(), gdb.printers.EigenMatrixPrinter::to_string(), and gdb.printers.EigenSparseMatrixPrinter::to_string().
| void Eigen::IncompleteLUT< Scalar, StorageIndex >::setDroptol | ( | const RealScalar & | droptol | ) |
Set control parameter droptol
| droptol | Drop any element whose magnitude is less than this tolerance |
| void Eigen::IncompleteLUT< Scalar, StorageIndex >::setFillfactor | ( | int | fillfactor | ) |
Set control parameter fillfactor
| fillfactor | This is used to compute the number fill_in of largest elements to keep on each row. |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Referenced by Eigen::IncompleteLUT< Scalar_, StorageIndex_ >::info().
|
mutableprotected |
Referenced by Eigen::IncompleteLUT< Scalar_, StorageIndex_ >::info().
|
protected |
|
protected |
|
protected |