#include <SLESolver.hpp>
|
| | SLESolver (size_t imax, double epsilon) |
| | Std-Constructor. More...
|
| |
| virtual void | solve (sgpp::base::OperationMatrix &SystemMatrix, sgpp::base::DataVector &alpha, sgpp::base::DataVector &b, bool reuse=false, bool verbose=false, double max_threshold=DEFAULT_RES_THRESHOLD)=0 |
| | Pure virtual Function that defines a solve method for an iterative solver. More...
|
| |
| virtual | ~SLESolver () |
| | Std-Destructor. More...
|
| |
| double | getEpsilon () |
| | gets the the epsilon, that is used in the SGSolver More...
|
| |
| size_t | getNumberIterations () |
| | function that returns the number of needed solve steps More...
|
| |
| double | getResiduum () |
| | function the returns the residuum (current or final), error of the solver More...
|
| |
| void | setEpsilon (double eps) |
| | resets the epsilon, that is used in the SGSolver More...
|
| |
| void | setMaxIterations (size_t nIterations) |
| | resets the number of maximum iterations More...
|
| |
| | SGSolver (size_t nMaximumIterations, double epsilon) |
| | Std-Constructor. More...
|
| |
| virtual | ~SGSolver () |
| | Std-Destructor. More...
|
| |
◆ SLESolver()
| sgpp::solver::SLESolver::SLESolver |
( |
size_t |
imax, |
|
|
double |
epsilon |
|
) |
| |
|
inline |
Std-Constructor.
- Parameters
-
| imax | number of maximum executed iterations |
| epsilon | the final error in the iterative solver |
◆ ~SLESolver()
| virtual sgpp::solver::SLESolver::~SLESolver |
( |
| ) |
|
|
inlinevirtual |
◆ solve()
Pure virtual Function that defines a solve method for an iterative solver.
- Parameters
-
| SystemMatrix | reference to an sgpp::base::OperationMatrix Object that implements the matrix vector multiplication |
| alpha | the sparse grid's coefficients which have to be determined |
| b | the right hand side of the system of linear equations |
| reuse | identifies if the alphas, stored in alpha at calling time, should be reused |
| verbose | prints information during execution of the solver |
| max_threshold | additional abort criteria for solver, default value is 10^-9! |
Implemented in sgpp::solver::BiCGStab, and sgpp::solver::ConjugateGradients.
Referenced by sgpp::solver::VarTimestep::corrector(), sgpp::solver::VarTimestep::predictor(), sgpp::solver::AdamsBashforth::solve(), sgpp::solver::CrankNicolson::solve(), sgpp::solver::Euler::solve(), sgpp::datadriven::LearnerBase::train(), ~SLESolver(), sgpp::solver::StepsizeControlEJ::~StepsizeControlEJ(), and sgpp::solver::StepsizeControlH::~StepsizeControlH().
The documentation for this class was generated from the following file: