3#include <dune/istl/solver.hh>
7 template <
class M,
class X,
class Y = X>
15 virtual void init(M
const& A) = 0;
21 virtual void apply(X& x, Y
const& b, Dune::InverseOperatorResult& res) = 0;
Definition: LinearSolverInterface.hpp:9
virtual void init(M const &A)=0
Prepare the solve (and preconditioner), e.g. make a factorization of the matrix, or extract its diago...
virtual void finish()=0
Cleanup the solver, e.g. free the previously created factorization.
virtual void apply(X &x, Y const &b, Dune::InverseOperatorResult &res)=0
Apply the inverse operator to the rhs vector b.