A preconditioner based on the digonal entries. More...
Inheritance diagram for Eigen::DiagonalPreconditioner< Scalar_ >:Public Types | |
| enum | { ColsAtCompileTime , MaxColsAtCompileTime } |
| typedef Vector::StorageIndex | StorageIndex |
Public Member Functions | |
| template<typename Rhs , typename Dest > | |
| void | _solve_impl (const Rhs &b, Dest &x) const |
| template<typename MatType > | |
| DiagonalPreconditioner & | analyzePattern (const MatType &) |
| EIGEN_CONSTEXPR Index | cols () const EIGEN_NOEXCEPT |
| template<typename MatType > | |
| DiagonalPreconditioner & | compute (const MatType &mat) |
| DiagonalPreconditioner () | |
| template<typename MatType > | |
| DiagonalPreconditioner (const MatType &mat) | |
| template<typename MatType > | |
| DiagonalPreconditioner & | factorize (const MatType &mat) |
| ComputationInfo | info () |
| EIGEN_CONSTEXPR Index | rows () const EIGEN_NOEXCEPT |
| template<typename Rhs > | |
| const Solve< DiagonalPreconditioner, Rhs > | solve (const MatrixBase< Rhs > &b) const |
Protected Attributes | |
| Vector | m_invdiag |
| bool | m_isInitialized |
Private Types | |
| typedef Scalar_ | Scalar |
| typedef Matrix< Scalar, Dynamic, 1 > | Vector |
A preconditioner based on the digonal entries.
This class allows to approximately solve for A.x = b problems assuming A is a diagonal matrix. In other words, this preconditioner neglects all off diagonal entries and, in Eigen's language, solves for:
| Scalar_ | the type of the scalar. |
This class follows the sparse solver concept .
This preconditioner is suitable for both selfadjoint and general problems. The diagonal entries are pre-inverted and stored into a dense vector.
Definition at line 38 of file BasicPreconditioners.h.
|
private |
Definition at line 40 of file BasicPreconditioners.h.
| typedef Vector::StorageIndex Eigen::DiagonalPreconditioner< Scalar_ >::StorageIndex |
Definition at line 43 of file BasicPreconditioners.h.
|
private |
Definition at line 41 of file BasicPreconditioners.h.
| anonymous enum |
| Enumerator | |
|---|---|
| ColsAtCompileTime | |
| MaxColsAtCompileTime | |
Definition at line 44 of file BasicPreconditioners.h.
|
inline |
Definition at line 49 of file BasicPreconditioners.h.
|
inlineexplicit |
Definition at line 52 of file BasicPreconditioners.h.
|
inline |
Definition at line 91 of file BasicPreconditioners.h.
|
inline |
Definition at line 61 of file BasicPreconditioners.h.
|
inline |
Definition at line 58 of file BasicPreconditioners.h.
|
inline |
Definition at line 84 of file BasicPreconditioners.h.
|
inline |
Definition at line 67 of file BasicPreconditioners.h.
|
inline |
Definition at line 105 of file BasicPreconditioners.h.
|
inline |
Definition at line 57 of file BasicPreconditioners.h.
|
inline |
Definition at line 97 of file BasicPreconditioners.h.
|
protected |
Definition at line 108 of file BasicPreconditioners.h.
|
protected |
Definition at line 109 of file BasicPreconditioners.h.