NeoPZ
Functions
gmres.h File Reference

Contains the implementation of the CMRES function which solves the unsymmetric linear system using the Generalized Minimum Residual method. More...

#include <math.h>
Include dependency graph for gmres.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

template<class Real >
void GeneratePlaneRotation (Real &dx, Real &dy, Real &cs, Real &sn)
 Compute the values cs and sn parameters to rotation. More...
 
template<class Real >
void ApplyPlaneRotation (Real &dx, Real &dy, Real &cs, Real &sn)
 Makes rotation of the plane based on the cs and sn parameters. More...
 
template<class Matrix , class Vector >
void Update (Vector &x, int64_t k, Matrix &h, Vector &s, Vector v[])
 Computes back solve. Updates on v vector. More...
 
template<class Real >
Real abs (Real x)
 Returns absolute value to real. More...
 
template<class Operator , class Vector , class Preconditioner , class Matrix , class Real >
int GMRES (Operator &A, Vector &x, const Vector &b, Preconditioner &M, Matrix &H, int &m, int64_t &max_iter, Real &tol, Vector *residual, const int FromCurrent)
 GMRES solves the unsymmetric linear system Ax = b using the Generalized Minimum Residual method. More...
 

Detailed Description

Contains the implementation of the CMRES function which solves the unsymmetric linear system using the Generalized Minimum Residual method.

Definition in file gmres.h.