19 #include "ROL_ParameterList.hpp"
33 Krylov( Real absTol = 1.e-4, Real relTol = 1.e-2,
unsigned maxit = 100 )
36 Krylov( ROL::ParameterList &parlist ) {
37 ROL::ParameterList &krylovList = parlist.sublist(
"General").sublist(
"Krylov");
38 absTol_ = krylovList.get(
"Absolute Tolerance", 1.e-4);
39 relTol_ = krylovList.get(
"Relative Tolerance", 1.e-2);
40 maxit_ = krylovList.get(
"Iteration Limit", 100);
46 int &iter,
int &flag ) = 0;
Real getRelativeTolerance(void) const
Real getAbsoluteTolerance(void) const
unsigned getMaximumIteration(void) const
void resetRelativeTolerance(const Real relTol)
Defines the linear algebra or vector space interface.
void resetMaximumIteration(const unsigned maxit)
Krylov(ROL::ParameterList &parlist)
virtual Real run(Vector< Real > &x, LinearOperator< Real > &A, const Vector< Real > &b, LinearOperator< Real > &M, int &iter, int &flag)=0
Provides definitions for Krylov solvers.
Provides the interface to apply a linear operator.
void resetAbsoluteTolerance(const Real absTol)
Krylov(Real absTol=1.e-4, Real relTol=1.e-2, unsigned maxit=100)