Shapeworks Studio
2.1
Shape analysis software suite
|
A preconditioner based on the digonal entries. More...
#include <BasicPreconditioners.h>
Public Types | |
typedef Matrix< Scalar, Dynamic, Dynamic > | MatrixType |
Public Member Functions | |
template<typename MatType > | |
DiagonalPreconditioner (const MatType &mat) | |
Index | rows () const |
Index | cols () const |
template<typename MatType > | |
DiagonalPreconditioner & | analyzePattern (const MatType &) |
template<typename MatType > | |
DiagonalPreconditioner & | factorize (const MatType &mat) |
template<typename MatType > | |
DiagonalPreconditioner & | compute (const MatType &mat) |
template<typename Rhs , typename Dest > | |
void | _solve (const Rhs &b, Dest &x) const |
template<typename Rhs > | |
const internal::solve_retval< DiagonalPreconditioner, Rhs > | solve (const MatrixBase< Rhs > &b) const |
Protected Attributes | |
Vector | m_invdiag |
bool | m_isInitialized |
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.