VERB_code_2.2  2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
GMRES2.h File Reference
#include <math.h>

Go to the source code of this file.

Functions

template<class Matrix , class Vector >
void Update (Vector &x, int k, Matrix &h, Vector &s, std::vector< Vector > &v)
 
template<class Real >
Real abs (Real x)
 
double norm (const CPPL::dcovector &V)
 
double dot (const CPPL::dcovector &V, const CPPL::dcovector &W)
 
template<class Real >
void GeneratePlaneRotation (Real &dx, Real &dy, Real &cs, Real &sn)
 
template<class Real >
void ApplyPlaneRotation (Real &dx, Real &dy, Real &cs, Real &sn)
 
template<class Operator , class Vector , class Preconditioner , class Matrix , class Real >
int GMRES (const Operator &A, Vector &x, const Vector &b, const Preconditioner &M, Matrix &H, int &m, int &max_iter, Real &tol)
 

Function Documentation

template<class Matrix , class Vector >
void Update ( Vector &  x,
int  k,
Matrix &  h,
Vector &  s,
std::vector< Vector > &  v 
)

Definition at line 38 of file GMRES2.h.

template<class Real >
Real abs ( Real  x)

Definition at line 56 of file GMRES2.h.

double norm ( const CPPL::dcovector &  V)

Definition at line 61 of file GMRES2.h.

double dot ( const CPPL::dcovector &  V,
const CPPL::dcovector &  W 
)

Definition at line 70 of file GMRES2.h.

template<class Real >
void GeneratePlaneRotation ( Real &  dx,
Real &  dy,
Real &  cs,
Real &  sn 
)

Definition at line 81 of file GMRES2.h.

References abs().

template<class Real >
void ApplyPlaneRotation ( Real &  dx,
Real &  dy,
Real &  cs,
Real &  sn 
)

Definition at line 99 of file GMRES2.h.

template<class Operator , class Vector , class Preconditioner , class Matrix , class Real >
int GMRES ( const Operator &  A,
Vector &  x,
const Vector &  b,
const Preconditioner &  M,
Matrix &  H,
int &  m,
int &  max_iter,
Real &  tol 
)

!! delete [] v;

!! delete [] v;

!! delete [] v;

Definition at line 110 of file GMRES2.h.

References abs(), ApplyPlaneRotation(), dot(), GeneratePlaneRotation(), norm(), and Update().