53 #include "ROL_ParameterList.hpp"
67 Krylov( Real absTol = 1.e-4, Real relTol = 1.e-2,
unsigned maxit = 100 )
70 Krylov( ROL::ParameterList &parlist ) {
71 ROL::ParameterList &krylovList = parlist.sublist(
"General").sublist(
"Krylov");
72 absTol_ = krylovList.get(
"Absolute Tolerance", 1.e-4);
73 relTol_ = krylovList.get(
"Relative Tolerance", 1.e-2);
74 maxit_ = krylovList.get(
"Iteration Limit", 100);
79 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)