VERB_code_2.2
2
|
#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) |
void Update | ( | Vector & | x, |
int | k, | ||
Matrix & | h, | ||
Vector & | s, | ||
std::vector< Vector > & | v | ||
) |
double dot | ( | const CPPL::dcovector & | V, |
const CPPL::dcovector & | W | ||
) |
void GeneratePlaneRotation | ( | Real & | dx, |
Real & | dy, | ||
Real & | cs, | ||
Real & | sn | ||
) |
void ApplyPlaneRotation | ( | Real & | dx, |
Real & | dy, | ||
Real & | cs, | ||
Real & | sn | ||
) |
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().