TBCI Numerical high perf. C++ Library  2.8.0
Functions | Variables
ir.h File Reference

Iterative Refinement Solver TBCI::IR. More...

#include "tbci/basics.h"
Include dependency graph for ir.h:

Go to the source code of this file.

Functions

NAMESPACE_TBCI INST3 (template< typename T, Matrix< T >, Vector< T > > class NN friend int IR(const Matrix< T > &, Vector< T > &, const Vector< T > &, const Preconditioner_Sig< T, Matrix< T > > &, unsigned int &, double &);) INST3(template< typename T
 Iterative template routine – Preconditioned Richardson. More...
 
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 &)
 
template<typename T , typename SysMatrix , typename SysVector >
int IR (const SysMatrix &A, SysVector &x, const SysVector &b, const Preconditioner_Sig< T, SysMatrix > &M, unsigned int &max_iter, double &tol)
 

Variables

NAMESPACE_TBCI BdMatrix< T >
 

Detailed Description

Iterative Refinement Solver TBCI::IR.

Definition in file ir.h.

Function Documentation

NAMESPACE_TBCI INST3 ( template< typename T, Matrix< T >, Vector< T > > class NN friend int IR(const Matrix< T > &, Vector< T > &, const Vector< T > &, const Preconditioner_Sig< T, Matrix< T > > &, unsigned int &, double &);  )

Iterative template routine – Preconditioned Richardson.

IR solves the unsymmetric linear system Ax = b using Iterative Refinement (preconditioned Richardson iteration).

Returns
The return value indicates convergence within max_iter (input) iterations (0), or no convergence within max_iter iterations (1).

Upon successful return, output arguments have the following values:

Parameters
x– approximate solution to Ax = b
max_iter– the number of iterations performed before the tolerance was reached
tol– the residual after the final iteration
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 &   
)
template<typename T , typename SysMatrix , typename SysVector >
int IR ( const SysMatrix A,
SysVector &  x,
const SysVector &  b,
const Preconditioner_Sig< T, SysMatrix > &  M,
unsigned int &  max_iter,
double &  tol 
)

Definition at line 41 of file ir.h.

References i, Preconditioner_Sig< T, MatrixType >::solve(), x, and z.

Variable Documentation

Definition at line 34 of file ir.h.