TBCI Numerical high perf. C++ Library 2.8.0
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.
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

◆ INST3()

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

◆ IR() [1/2]

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 &  )

References IR(), and T.

Referenced by IR(), and IR().

◆ IR() [2/2]

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 b, i, IR(), Preconditioner_Sig< T, MatrixType >::solve(), SysMatrix, and x.

Variable Documentation

◆ BdMatrix< T >

Definition at line 31 of file ir.h.