![]() |
KASKADE 7 development version
|
The trivial preconditioner: this is simply the identity that does exactly nothing. More...
#include <trivialpreconditioner.hh>
Public Types | |
| using | field_type = typename Operator::field_type |
| using | domain_type = typename Operator::domain_type |
| using | range_type = typename Operator::range_type |
Public Member Functions | |
| virtual void | pre (domain_type &, range_type &) |
| Preconditioner preparation. | |
| virtual void | apply (domain_type &x, range_type const &y) |
| virtual void | post (domain_type &) |
| Preconditioner cleanup. | |
| virtual field_type | applyDp (domain_type &x, range_type const &y) override |
| Computes \( x \leftarrow By \) and returns \( \langle By, y \rangle \). | |
| virtual bool | requiresInitializedInput () const override |
| Returns true if the target vector x has to be initialized to zero before calling apply or applyDp. | |
| virtual Dune::SolverCategory::Category | category () const override |
| returns the category of the operator | |
The trivial preconditioner: this is simply the identity that does exactly nothing.
Use this as dummy preconditioner in case you don't want preconditioning for some reason (e.g., testing/debugging). For symmetric problems, consider using IdentityPreconditioner exposing the SymmetricOperator interface.
Definition at line 36 of file trivialpreconditioner.hh.
| using Kaskade::TrivialPreconditioner< Operator >::domain_type = typename Operator::domain_type |
Definition at line 40 of file trivialpreconditioner.hh.
| using Kaskade::TrivialPreconditioner< Operator >::field_type = typename Operator::field_type |
Definition at line 39 of file trivialpreconditioner.hh.
| using Kaskade::TrivialPreconditioner< Operator >::range_type = typename Operator::range_type |
Definition at line 41 of file trivialpreconditioner.hh.
|
inlinevirtual |
Definition at line 44 of file trivialpreconditioner.hh.
|
inlineoverridevirtual |
Computes \( x \leftarrow By \) and returns \( \langle By, y \rangle \).
Implements Kaskade::SymmetricPreconditioner< Operator::domain_type, Operator::range_type >.
Definition at line 50 of file trivialpreconditioner.hh.
|
inlineoverridevirtual |
returns the category of the operator
From the Dune doxygen documentation it is unclear what this is supposed to mean. We return a dummy here.
Reimplemented from Kaskade::SymmetricPreconditioner< Operator::domain_type, Operator::range_type >.
Definition at line 69 of file trivialpreconditioner.hh.
|
inlinevirtual |
Preconditioner cleanup.
The provided default implementation does nothing.
Reimplemented from Kaskade::SymmetricPreconditioner< Operator::domain_type, Operator::range_type >.
Definition at line 45 of file trivialpreconditioner.hh.
|
inlinevirtual |
Preconditioner preparation.
The provided default implementation does nothing.
Reimplemented from Kaskade::SymmetricPreconditioner< Operator::domain_type, Operator::range_type >.
Definition at line 43 of file trivialpreconditioner.hh.
|
inlineoverridevirtual |
Returns true if the target vector x has to be initialized to zero before calling apply or applyDp.
Implements Kaskade::SymmetricPreconditioner< Operator::domain_type, Operator::range_type >.
Definition at line 59 of file trivialpreconditioner.hh.