bicgstab.hh
std::ostream & info(std::ostream &os) const
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
Operator< G > * M_
Operator which inverse is Minv, for control of residual.
Definition: bicgstab.hh:89
Solves a symmetric system of linear equations with BiConjugate Gradient Stabilized (BICGSTAB).
Definition: bicgstab.hh:34
bool scalarTooSmall_(I &scalar, const std::string name, const uint &it, const Real &eps, const Real &maxeps) const
Checks if the scalar is zero or NaN and throws an exception in this case.
BiCGStab(Operator< F > &A, Operator< G > &Minv, Real maxeps, int maxit=0, bool relres=0, bool throwing=true, Operator< G > *M=0)
Constructor.
Definition: bicgstab.hh:61
BiCGStab(Operator< F > &A, Real maxeps, int maxit=0, uint relres=false, bool throwing=true)
Constructor.
Definition: bicgstab.hh:44
Abstract class for an operator acting on vectors only, not arbitrary functions.
Definition: compositions.hh:115
bool stagnated_(const Vector< F > &x, const Vector< F > &s_p, F &alpha_omega)
bool throwing_
false: best solution is given, when non converging true: exception is thrown, when non converging
Definition: bicgstab.hh:106
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
bool converged_(const Vector< F > &fncY, Vector< F > &fncX, const Vector< F > &x, const uint &it, Real &eps, const Real &maxeps, const Real &l2Y)
Calculated current residual and return true if its smaller then maxeps.
virtual void apply_(const Vector< F > &fncY, Vector< F > &fncX)
Intrinsic application method, i.e.