|
OpenFCST: The open-source Fuel Cell Simulation Toolbox
|
This class implements GMRES solver. More...
#include <linear_solvers.h>
Public Member Functions | |
Constructors, destructor, and initialization | |
| GMRESSolver () | |
| Constructor. | |
| ~GMRESSolver () | |
| Destructor. | |
Solve function | |
| template<typename MATRIX , typename VECTOR , typename PRECONDITIONER > | |
| void | solve (const MATRIX &matrix, VECTOR &solution, const VECTOR &right_hand_side, const unsigned int &n_iter, const double &tolerance, const PRECONDITIONER &preconditioner) const |
| This function solves the linear system Ax = b where. | |
This class implements GMRES solver.
|
inline |
Constructor.
|
inline |
Destructor.
|
inline |
This function solves the linear system Ax = b where.
A = matrix,x = solution,b = right_hand_side.Other data includes
n_iter is the max number of GMRES iterations,tolerance is the tolerance of GMRES solver,preconditioner is the preconditioner used.
1.8.2