Abstract base class for solving linear and nonlinear problems. Different implementation may exist. More...
#include <solver.hpp>
Public Member Functions | |
virtual | ~Solver () |
Virtual destructor. More... | |
virtual void | solve (const class Problem &p, Vector &X)=0 |
Solve problem p. Initial guess and solution are in vector X. More... | |
virtual void | reset (void)=0 |
Reset solver. More... | |
Abstract base class for solving linear and nonlinear problems. Different implementation may exist.
|
inlinevirtual |
Virtual destructor.
|
pure virtual |
Reset solver.
This is a signal from the problem that the problem has changed and internal caches (if they exist) in the solver should be resetted.
Implemented in GSSolver, UMFPACKSolver, and BiCGSTABSolver.
Solve problem p. Initial guess and solution are in vector X.