SG++-Doxygen-Documentation
sgpp::solver::SGSolver Class Reference

Abstract class that defines a solver used in Sparse Grids Applications. More...

#include <SGSolver.hpp>

Inheritance diagram for sgpp::solver::SGSolver:
sgpp::datadriven::DBMatDecompMatrixSolver sgpp::solver::ODESolver sgpp::solver::SLESolver sgpp::datadriven::DBMatDMSChol sgpp::datadriven::DBMatDMSOrthoAdapt sgpp::solver::AdamsBashforth sgpp::solver::CrankNicolson sgpp::solver::Euler sgpp::solver::StepsizeControl sgpp::solver::BiCGStab sgpp::solver::ConjugateGradients

Public Member Functions

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...
 

Protected Attributes

double myEpsilon
 epsilon needed in the, e.g. final error in the iterative solver, or a timestep More...
 
size_t nIterations
 Number of Iterations needed for the solve. More...
 
size_t nMaxIterations
 Number of maximum iterations for cg. More...
 
double residuum
 residuum More...
 

Detailed Description

Abstract class that defines a solver used in Sparse Grids Applications.

Constructor & Destructor Documentation

◆ SGSolver()

sgpp::solver::SGSolver::SGSolver ( size_t  nMaximumIterations,
double  epsilon 
)
inline

Std-Constructor.

Parameters
nMaximumIterationsnumber of maximum executed iterations
epsilonthe final error in the iterative solver, or the size of one timestep

◆ ~SGSolver()

virtual sgpp::solver::SGSolver::~SGSolver ( )
inlinevirtual

Std-Destructor.

Member Function Documentation

◆ getEpsilon()

double sgpp::solver::SGSolver::getEpsilon ( )
inline

gets the the epsilon, that is used in the SGSolver

Returns
the epsilon, used in the solver

References myEpsilon.

◆ getNumberIterations()

size_t sgpp::solver::SGSolver::getNumberIterations ( )
inline

function that returns the number of needed solve steps

Returns
the number of needed solve steps of the sovler

References nIterations.

Referenced by sgpp::solver::AdamsBashforth::solve(), sgpp::solver::CrankNicolson::solve(), sgpp::solver::Euler::solve(), sgpp::solver::StepsizeControl::solve(), and sgpp::datadriven::LearnerBase::train().

◆ getResiduum()

double sgpp::solver::SGSolver::getResiduum ( )
inline

◆ setEpsilon()

void sgpp::solver::SGSolver::setEpsilon ( double  eps)
inline

resets the epsilon, that is used in the SGSolver

Parameters
epsthe new value of epsilon

References friedman::eps.

Referenced by sgpp::datadriven::ModelFittingBase::reconfigureSolver(), and sgpp::datadriven::LearnerBase::train().

◆ setMaxIterations()

void sgpp::solver::SGSolver::setMaxIterations ( size_t  nIterations)
inline

resets the number of maximum iterations

Parameters
nIterationsthe new number of maximum iterations

References nIterations.

Referenced by sgpp::datadriven::ModelFittingBase::reconfigureSolver(), python.learner.solver.CGSolver.CGSolver::setImax(), and sgpp::datadriven::LearnerBase::train().

Member Data Documentation

◆ myEpsilon

double sgpp::solver::SGSolver::myEpsilon
protected

◆ nIterations

◆ nMaxIterations

◆ residuum


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