#include <SLESolverSP.hpp>
|
| SLESolverSP (size_t imax, float epsilon) |
| Std-Constructor.
|
|
virtual void | solve (sgpp::base::OperationMatrixSP &SystemMatrix, sgpp::base::DataVectorSP &alpha, sgpp::base::DataVectorSP &b, bool reuse=false, bool verbose=false, float max_threshold=DEFAULT_RES_THRESHOLD)=0 |
| Pure virtual Function that defines a solve method for an iterative solver.
|
|
virtual | ~SLESolverSP () |
| Std-Destructor.
|
|
float | getEpsilon () |
| gets the the epsilon, that is used in the SGSolver
|
|
size_t | getNumberIterations () |
| function that returns the number of needed solve steps
|
|
float | getResiduum () |
| function the returns the residuum (current or final), error of the solver
|
|
void | setEpsilon (float eps) |
| resets the epsilon, that is used in the SGSolver
|
|
void | setMaxIterations (size_t nIterations) |
| resets the number of maximum iterations
|
|
| SGSolverSP (size_t nMaximumIterations, float epsilon) |
| Std-Constructor.
|
|
virtual | ~SGSolverSP () |
| Std-Destructor.
|
|
|
float | myEpsilon |
| epsilon needed in the, e.g. final error in the iterative solver, or a timestep
|
|
size_t | nIterations |
| Number of Iterations needed for the solve.
|
|
size_t | nMaxIterations |
| Number of maximum iterations for cg.
|
|
float | residuum |
| residuum
|
|
◆ SLESolverSP()
sgpp::solver::SLESolverSP::SLESolverSP |
( |
size_t |
imax, |
|
|
float |
epsilon |
|
) |
| |
|
inline |
Std-Constructor.
- Parameters
-
imax | number of maximum executed iterations |
epsilon | the final error in the iterative solver |
◆ ~SLESolverSP()
virtual sgpp::solver::SLESolverSP::~SLESolverSP |
( |
| ) |
|
|
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::BiCGStabSP, and sgpp::solver::ConjugateGradientsSP.
Referenced by sgpp::datadriven::LearnerBaseSP::train().
The documentation for this class was generated from the following file: