A preconditioner based on the digonal entries. More...
#include <BasicPreconditioners.h>
Public Types | |
enum | { ColsAtCompileTime = Dynamic, MaxColsAtCompileTime = Dynamic } |
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 preconditioner is suitable for both selfadjoint and general problems. The diagonal entries are pre-inverted and stored into a dense vector.
Definition at line 36 of file BasicPreconditioners.h.
|
private |
Definition at line 38 of file BasicPreconditioners.h.
typedef Vector::StorageIndex Eigen::DiagonalPreconditioner< _Scalar >::StorageIndex |
Definition at line 41 of file BasicPreconditioners.h.
|
private |
Definition at line 39 of file BasicPreconditioners.h.
anonymous enum |
Enumerator | |
---|---|
ColsAtCompileTime | |
MaxColsAtCompileTime |
Definition at line 42 of file BasicPreconditioners.h.
|
inline |
Definition at line 47 of file BasicPreconditioners.h.
|
inlineexplicit |
Definition at line 50 of file BasicPreconditioners.h.
|
inline |
Definition at line 89 of file BasicPreconditioners.h.
|
inline |
Definition at line 59 of file BasicPreconditioners.h.
|
inline |
Definition at line 56 of file BasicPreconditioners.h.
|
inline |
Definition at line 82 of file BasicPreconditioners.h.
|
inline |
Definition at line 65 of file BasicPreconditioners.h.
|
inline |
Definition at line 103 of file BasicPreconditioners.h.
|
inline |
Definition at line 55 of file BasicPreconditioners.h.
|
inline |
Definition at line 95 of file BasicPreconditioners.h.
|
protected |
Definition at line 106 of file BasicPreconditioners.h.
|
protected |
Definition at line 107 of file BasicPreconditioners.h.