AMDiS 2.11-git
The Adaptive Multi-Dimensional Simulation Toolbox
 
Loading...
Searching...
No Matches
LinearSolverInterface< M, X, Y > Class Template Referenceabstract

Inherited by LinearSolver< Mat, VecX, VecY >, LinearSolver< Mat, VecX, VecY >, and LinearSolver< Mat, VecX, VecY >.

Public Member Functions

virtual void init (M const &A)=0
 Prepare the solve (and preconditioner), e.g. make a factorization of the matrix, or extract its diagonal in a jacobian precon.
 
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.
 

Member Function Documentation

◆ apply()

template<class M , class X , class Y = X>
virtual void apply ( X &  x,
Y const &  b,
Dune::InverseOperatorResult &  res 
)
pure virtual

◆ finish()

template<class M , class X , class Y = X>
virtual void finish ( )
pure virtual

◆ init()

template<class M , class X , class Y = X>
virtual void init ( M const &  A)
pure virtual

Prepare the solve (and preconditioner), e.g. make a factorization of the matrix, or extract its diagonal in a jacobian precon.

Implemented in IterativeRunner< M, X, Y, IterativeSolver >, DirectRunner< M, X, Y, Solver >, KrylovRunner< M, X, Y, ITLSolver >, UmfpackRunner< M, X, Y >, and LinearSolver< Mat, VecX, VecY >.


The documentation for this class was generated from the following file: