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;
Definition basearray.hh:19
Statistics about compression achieved in implicit mode.
Definition bcrsmatrix.hh:81
Base class for matrix free definition of preconditioners.
Definition preconditioner.hh:26
virtual void post(X &x)=0
Clean up.
virtual void apply(X &v, const Y &d)=0
Apply one step of the preconditioner to the system A(v)=d.
virtual ~Preconditioner()
Definition preconditioner.hh:75
Y range_type
The range type of the preconditioner.
Definition preconditioner.hh:31
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 void pre(X &x, Y &b)=0
Prepare the preconditioner.