A preconditioner based on the digonal entries. More...
#include <BasicPreconditioners.h>
Public Types | |
typedef Matrix< Scalar, Dynamic, Dynamic > | MatrixType |
Public Member Functions | |
template<typename Rhs , typename Dest > | |
void | _solve (const Rhs &b, Dest &x) const |
template<typename MatType > | |
DiagonalPreconditioner & | analyzePattern (const MatType &) |
Index | cols () const |
template<typename MatType > | |
DiagonalPreconditioner & | compute (const MatType &mat) |
DiagonalPreconditioner () | |
template<typename MatType > | |
DiagonalPreconditioner (const MatType &mat) | |
template<typename MatType > | |
DiagonalPreconditioner & | factorize (const MatType &mat) |
Index | rows () const |
template<typename Rhs > | |
const internal::solve_retval < DiagonalPreconditioner, Rhs > | solve (const MatrixBase< Rhs > &b) const |
Protected Attributes | |
Vector | m_invdiag |
bool | m_isInitialized |
Private Types | |
typedef Vector::Index | Index |
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 33 of file BasicPreconditioners.h.
typedef Vector::Index Eigen::DiagonalPreconditioner< _Scalar >::Index [private] |
Definition at line 37 of file BasicPreconditioners.h.
typedef Matrix<Scalar,Dynamic,Dynamic> Eigen::DiagonalPreconditioner< _Scalar >::MatrixType |
Definition at line 41 of file BasicPreconditioners.h.
typedef _Scalar Eigen::DiagonalPreconditioner< _Scalar >::Scalar [private] |
Definition at line 35 of file BasicPreconditioners.h.
typedef Matrix<Scalar,Dynamic,1> Eigen::DiagonalPreconditioner< _Scalar >::Vector [private] |
Definition at line 36 of file BasicPreconditioners.h.
Eigen::DiagonalPreconditioner< _Scalar >::DiagonalPreconditioner | ( | ) | [inline] |
Definition at line 43 of file BasicPreconditioners.h.
Eigen::DiagonalPreconditioner< _Scalar >::DiagonalPreconditioner | ( | const MatType & | mat | ) | [inline] |
Definition at line 46 of file BasicPreconditioners.h.
void Eigen::DiagonalPreconditioner< _Scalar >::_solve | ( | const Rhs & | b, |
Dest & | x | ||
) | const [inline] |
Definition at line 84 of file BasicPreconditioners.h.
DiagonalPreconditioner& Eigen::DiagonalPreconditioner< _Scalar >::analyzePattern | ( | const MatType & | ) | [inline] |
Definition at line 55 of file BasicPreconditioners.h.
Index Eigen::DiagonalPreconditioner< _Scalar >::cols | ( | void | ) | const [inline] |
Definition at line 52 of file BasicPreconditioners.h.
DiagonalPreconditioner& Eigen::DiagonalPreconditioner< _Scalar >::compute | ( | const MatType & | mat | ) | [inline] |
Definition at line 78 of file BasicPreconditioners.h.
DiagonalPreconditioner& Eigen::DiagonalPreconditioner< _Scalar >::factorize | ( | const MatType & | mat | ) | [inline] |
Definition at line 61 of file BasicPreconditioners.h.
Index Eigen::DiagonalPreconditioner< _Scalar >::rows | ( | void | ) | const [inline] |
Definition at line 51 of file BasicPreconditioners.h.
const internal::solve_retval<DiagonalPreconditioner, Rhs> Eigen::DiagonalPreconditioner< _Scalar >::solve | ( | const MatrixBase< Rhs > & | b | ) | const [inline] |
Definition at line 90 of file BasicPreconditioners.h.
Vector Eigen::DiagonalPreconditioner< _Scalar >::m_invdiag [protected] |
Definition at line 99 of file BasicPreconditioners.h.
bool Eigen::DiagonalPreconditioner< _Scalar >::m_isInitialized [protected] |
Definition at line 100 of file BasicPreconditioners.h.