concepts::CGFabric< F > Class Template Reference
Fabric class for conjugate gradients: CG
.
More...
#include <cgFabric.hh>
Public Member Functions | |
CGFabric (Real maxeps=EPS, int maxit=0, bool relres=false, bool throwing=true) | |
Constructor. More... | |
Operator< F > * | operator() () |
Creates a linear solver from matrix . More... | |
virtual Operator< F > * | operator() (Operator< F > &matrix) |
Protected Member Functions | |
virtual std::ostream & | info (std::ostream &os) const |
Private Attributes | |
Real | maxeps_ |
Convergence criteria for the solver. More... | |
int | maxit_ |
Convergence criteria for the solver. More... | |
bool | relres_ |
Convergence criteria for the solver. More... | |
bool | throwing_ |
false: best solution is given, when non converging true: exception is thrown, when non converging More... | |
Detailed Description
template<typename F>
class concepts::CGFabric< F >
Fabric class for conjugate gradients: CG
.
Definition at line 27 of file cgFabric.hh.
Constructor & Destructor Documentation
◆ CGFabric()
|
inline |
Constructor.
- Parameters
-
maxeps Maximal residual maxit Maximal number of iterations relres Relative residual throwing In the case of non convergence an exception is thrown and the best solution is not given back.
Definition at line 36 of file cgFabric.hh.
Member Function Documentation
◆ info()
|
inlineprotectedvirtual |
Definition at line 44 of file cgFabric.hh.
◆ operator()() [1/2]
|
inlinevirtual |
Creates a linear solver from matrix
.
The caller is responsible for the deletion of the delivered object.
- Returns
- Reference to the linear solver
Implements concepts::SolverFabric< F >.
Definition at line 42 of file cgFabric.hh.
◆ operator()() [2/2]
|
inlinevirtual |
Implements concepts::SolverFabric< F >.
Definition at line 39 of file cgFabric.hh.
Member Data Documentation
◆ maxeps_
|
private |
Convergence criteria for the solver.
Definition at line 50 of file cgFabric.hh.
◆ maxit_
|
private |
Convergence criteria for the solver.
Definition at line 52 of file cgFabric.hh.
◆ relres_
|
private |
Convergence criteria for the solver.
Definition at line 54 of file cgFabric.hh.
◆ throwing_
|
private |
false: best solution is given, when non converging true: exception is thrown, when non converging
Definition at line 58 of file cgFabric.hh.
The documentation for this class was generated from the following file:
- operator/cgFabric.hh