Medial Code Documentation
|
Modified Incomplete Cholesky with dual threshold. More...
#include <IncompleteCholesky.h>
Public Types | |
enum | { UpLo = _UpLo } |
enum | { ColsAtCompileTime = Dynamic , MaxColsAtCompileTime = Dynamic } |
typedef NumTraits< Scalar >::Real | RealScalar |
typedef _OrderingType | OrderingType |
typedef OrderingType::PermutationType | PermutationType |
typedef PermutationType::StorageIndex | StorageIndex |
typedef SparseMatrix< Scalar, ColMajor, StorageIndex > | FactorType |
typedef Matrix< Scalar, Dynamic, 1 > | VectorSx |
typedef Matrix< RealScalar, Dynamic, 1 > | VectorRx |
typedef Matrix< StorageIndex, Dynamic, 1 > | VectorIx |
typedef std::vector< std::list< StorageIndex > > | VectorList |
Public Member Functions | |
IncompleteCholesky () | |
Default constructor leaving the object in a partly non-initialized stage. | |
template<typename MatrixType > | |
IncompleteCholesky (const MatrixType &matrix) | |
Constructor computing the incomplete factorization for the given matrix matrix. | |
Index | rows () const |
Index | cols () const |
ComputationInfo | info () const |
Reports whether previous computation was successful. | |
void | setInitialShift (RealScalar shift) |
Set the initial shift parameter ![]() | |
template<typename MatrixType > | |
void | analyzePattern (const MatrixType &mat) |
Computes the fill reducing permutation vector using the sparsity pattern of mat. | |
template<typename MatrixType > | |
void | factorize (const MatrixType &mat) |
Performs the numerical factorization of the input matrix mat. | |
template<typename MatrixType > | |
void | compute (const MatrixType &mat) |
Computes or re-computes the incomplete Cholesky factorization of the input matrix mat. | |
template<typename Rhs , typename Dest > | |
void | _solve_impl (const Rhs &b, Dest &x) const |
const FactorType & | matrixL () const |
const VectorRx & | scalingS () const |
const PermutationType & | permutationP () const |
template<typename _MatrixType > | |
void | factorize (const _MatrixType &mat) |
![]() | |
SparseSolverBase () | |
Default constructor. | |
Derived & | derived () |
const Derived & | derived () const |
template<typename Rhs > | |
const Solve< Derived, Rhs > | solve (const MatrixBase< Rhs > &b) const |
template<typename Rhs > | |
const Solve< Derived, Rhs > | solve (const SparseMatrixBase< Rhs > &b) const |
template<typename Rhs , typename Dest > | |
void | _solve_impl (const SparseMatrixBase< Rhs > &b, SparseMatrixBase< Dest > &dest) const |
Protected Types | |
typedef SparseSolverBase< IncompleteCholesky< Scalar, _UpLo, _OrderingType > > | Base |
Protected Attributes | |
FactorType | m_L |
VectorRx | m_scale |
RealScalar | m_initialShift |
bool | m_analysisIsOk |
bool | m_factorizationIsOk |
ComputationInfo | m_info |
PermutationType | m_perm |
bool | m_isInitialized |
![]() | |
bool | m_isInitialized |
Modified Incomplete Cholesky with dual threshold.
References : C-J. Lin and J. J. Moré, Incomplete Cholesky Factorizations with Limited memory, SIAM J. Sci. Comput. 21(1), pp. 24-45, 1999
_MatrixType | The type of the sparse matrix. It is advised to give a row-oriented sparse matrix |
_UpLo | The triangular part that will be used for the computations. It can be Lower or Upper. Default is Lower. |
_OrderingType | The ordering method to use, either AMDOrdering<> or NaturalOrdering<>. Default is AMDOrdering<int>, unless EIGEN_MPL2_ONLY is defined, in which case the default is NaturalOrdering<int>. |
\implsparsesolverconcept
It performs the following incomplete factorization:
Shifting strategy: Let
|
inline |
Default constructor leaving the object in a partly non-initialized stage.
You must call compute() or the pair analyzePattern()/factorize() to make it valid.
|
inline |
|
inline |
Computes or re-computes the incomplete Cholesky factorization of the input matrix mat.
It is a shortcut for a sequential call to the analyzePattern() and factorize() methods.
void Eigen::IncompleteCholesky< Scalar, _UpLo, _OrderingType >::factorize | ( | const MatrixType & | mat | ) |
Performs the numerical factorization of the input matrix mat.
The method analyzePattern() or compute() must have been called beforehand with a matrix having the same pattern.
|
inline |
Reports whether previous computation was successful.
It triggers an assertion if *this
has not been initialized through the respective constructor, or a call to compute() or analyzePattern().
Success
if computation was successful, NumericalIssue
if the matrix appears to be negative.
|
inline |
|
inline |
|
inline |
|
inline |