6 #ifndef TBCI_SOLVER_IR_H
7 #define TBCI_SOLVER_IR_H
9 #include "tbci/basics.h"
40 template < typename T, typename SysMatrix, typename SysVector >
45 unsigned int dim = A.rows();
48 double normb = b.fabs();
49 if (normb == 0.0) normb = 1.0;
53 if ((resid = r.fabs() / normb) <= tol)
60 for (
unsigned int i = 1;
i <= max_iter;
i++)
65 if ((resid = r.fabs() / normb) <= tol)
const Vector< T > const Vector< T > & x
Abstract base class for all Preconditioners.
The class BdMatrix is an implementation to store and do operations on sparse Matrices with a band str...
const Vector< T > Vector< T > Vector< T > Vector< T > Vector< T > & z
virtual TVector< T > solve(const Vector< T > &) const =0
NAMESPACE_TBCI Vector< T > class NN friend int IR(const BdMatrix< T > &, Vector< T > &, const Vector< T > &, const Preconditioner_Sig< T, BdMatrix< T > > &, unsigned int &, double &)