SG++-Doxygen-Documentation
sgpp::solver::SLESolver Class Referenceabstract

#include <SLESolver.hpp>

Inheritance diagram for sgpp::solver::SLESolver:
sgpp::solver::SGSolver sgpp::solver::BiCGStab sgpp::solver::ConjugateGradients

Public Member Functions

 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...
 
- Public Member Functions inherited from sgpp::solver::SGSolver
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...
 

Additional Inherited Members

- Protected Attributes inherited from sgpp::solver::SGSolver
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...
 

Constructor & Destructor Documentation

◆ SLESolver()

sgpp::solver::SLESolver::SLESolver ( size_t  imax,
double  epsilon 
)
inline

Std-Constructor.

Parameters
imaxnumber of maximum executed iterations
epsilonthe final error in the iterative solver

◆ ~SLESolver()

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

Std-Destructor.

References alpha, chess::b, DEFAULT_RES_THRESHOLD, and solve().

Member Function Documentation

◆ solve()

virtual void sgpp::solver::SLESolver::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 
)
pure virtual

Pure virtual Function that defines a solve method for an iterative solver.

Parameters
SystemMatrixreference to an sgpp::base::OperationMatrix Object that implements the matrix vector multiplication
alphathe sparse grid's coefficients which have to be determined
bthe right hand side of the system of linear equations
reuseidentifies if the alphas, stored in alpha at calling time, should be reused
verboseprints information during execution of the solver
max_thresholdadditional 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: