Inheritence diagram for xlifepp::IterativeSolver:
Collaboration diagram for xlifepp::IterativeSolver:
Base class of other Solver classes.
Subclassed by xlifepp::BicgSolver, xlifepp::BicgStabSolver, xlifepp::CgSolver, xlifepp::CgsSolver, xlifepp::GmresSolver, xlifepp::QmrSolver, xlifepp::SorSolver, xlifepp::SsorSolver
Public Functions
-
IterativeSolver(const string_t &name, IterativeSolverType ist, number_t maxOfIt, real_t eps, number_t vb = theVerboseLevel, bool prec = true)
-
Full constructor.
-
IterativeSolver(const string_t &name, number_t maxOfIt, real_t eps, number_t vb = theVerboseLevel, bool prec = true)
-
Full constructor without type.
-
IterativeSolver(const string_t &name, number_t vb = theVerboseLevel)
-
Constructor by name.
Default constructor by name.
-
IterativeSolver(IterativeSolverType ist, number_t maxOfIt, real_t eps, number_t vb = theVerboseLevel, bool prec = true)
-
Full constructor without name.
-
IterativeSolver(IterativeSolverType ist, number_t vb = theVerboseLevel)
-
Constructor by type.
Default constructor by type.
-
virtual ~IterativeSolver()
-
Destructor.
-
inline string_t name()
-
Iterative solver name for documentation purposes.
-
inline number_t nbIterations()
-
returns the number of iterations
-
void printOutput(const size_t nbRows) const
-
print utility
Print out the final result of the solver.
-
void resetSolver()
-
Reset Solver.
Reset Solver to its initial status.
-
inline real_t residue() const
-
returns the residue
Public Static Attributes
-
static number_t theNumberOfIterations = 0
-
number of iterations (global scope)
to store the number of iterations of iterative solvers
-
static real_t theResidue = 0.
-
residue (global scope)
to store the residue of iterative solvers