cg.hh
Go to the documentation of this file.
Solves a symmetric system of linear equations with conjugate gradients (CG).
Definition: cg.hh:39
CG(Operator< F > &A, Operator< F > &Minv, Real maxeps, int maxit=0, bool relres=0, bool throwing=true)
Constructor.
Definition: cg.hh:87
virtual const uint dimX() const
Returns the size of the image space of the operator (number of rows of the corresponding matrix)
Definition: compositions.hh:93
bool throwing_
false: best solution is given, when non converging true: exception is thrown, when non converging
Definition: cg.hh:146
virtual void apply_(const Vector< F > &fncY, Vector< F > &fncX)
Intrinsic application method, i.e.
Abstract class for an operator acting on vectors only, not arbitrary functions.
Definition: compositions.hh:115
Vector< Real > create_index_vector()
function to generate vector of indices of non-zero rows of A_
CG(Operator< F > &A, Real maxeps, int maxit=0, uint relres=false, bool throwing=true)
Constructor.
Definition: cg.hh:49
virtual const uint dimY() const
Returns the size of the source space of the operator (number of columns of the corresponding matrix)
Definition: compositions.hh:98
std::ostream & info(std::ostream &os) const