Diagonal (Jacobi) preconditioner for iterative solvers of linear systems.
More...
#include <TNL/Solvers/Linear/Preconditioners/Diagonal.h>
|
using | DeviceType = typename Matrix::DeviceType |
| Device where the preconditioner will run on and auxillary data will alloacted on.
|
|
using | IndexType = typename Matrix::IndexType |
| Type for indexing.
|
|
using | MatrixType = Matrix |
| Type of the matrix representing the linear system.
|
|
using | RealType = typename Matrix::RealType |
| Floating point type used for computations.
|
|
using | ConstVectorViewType = typename Traits< Matrix >::ConstVectorViewType |
| Type for constant vector view.
|
|
using | DeviceType = typename Matrix::DeviceType |
| Device where the solver will run on and auxillary data will alloacted on.
|
|
using | IndexType = typename Matrix::IndexType |
| Type for indexing.
|
|
using | MatrixPointer = std::shared_ptr< std::add_const_t< MatrixType > > |
| Type of shared pointer to the matrix.
|
|
using | MatrixType = Matrix |
| Type of the matrix representing the linear system.
|
|
using | RealType = typename Matrix::RealType |
| Floating point type used for computations.
|
|
using | VectorViewType = typename Traits< Matrix >::VectorViewType |
| Type for vector view.
|
|
|
virtual void | solve (ConstVectorViewType b, VectorViewType x) const override |
| This method applies the preconditioner.
|
|
virtual void | update (const MatrixPointer &matrixPointer) override |
| This method updates the preconditioner with respect to given matrix.
|
|
virtual | ~Preconditioner () |
| Destructor of the preconditioner.
|
|
virtual bool | setup (const Config::ParameterContainer ¶meters, const String &prefix="") |
| Method for setup of the preconditioner of linear iterative solver based on configuration parameters.
|
|
template<typename Matrix>
class TNL::Solvers::Linear::Preconditioners::Diagonal< Matrix >
Diagonal (Jacobi) preconditioner for iterative solvers of linear systems.
See detailed description.
See TNL::Solvers::Linear::Preconditioners::Preconditioner for example of setup with a linear solver.
- Template Parameters
-
Matrix | is type of the matrix describing the linear system. |
◆ DeviceType
template<typename Matrix >
◆ solve()
template<typename Matrix >
◆ update()
template<typename Matrix >
The documentation for this class was generated from the following files:
- src/TNL/Solvers/Linear/Preconditioners/Diagonal.h
- src/TNL/Solvers/Linear/Preconditioners/Diagonal.hpp