3 #ifndef DUNE_ISTL_PRECONDITIONER_HH 4 #define DUNE_ISTL_PRECONDITIONER_HH 25 template<
class X,
class Y>
50 virtual void pre (X& x, Y& b) = 0;
62 virtual void apply (X& v,
const Y& d) = 0;
72 virtual void post (X& x) = 0;
X domain_type
The domain type of the preconditioner.
Definition: preconditioner.hh:29
X::field_type field_type
The field type of the preconditioner.
Definition: preconditioner.hh:33
virtual ~Preconditioner()
Definition: preconditioner.hh:75
virtual void pre(X &x, Y &b)=0
Prepare the preconditioner.
virtual void apply(X &v, const Y &d)=0
Apply one step of the preconditioner to the system A(v)=d.
Y range_type
The range type of the preconditioner.
Definition: preconditioner.hh:31
Definition: basearray.hh:19
virtual void post(X &x)=0
Clean up.
Base class for matrix free definition of preconditioners.
Definition: preconditioner.hh:26