IdentPrec Class Template Reference
[Solver]
#include <Precond.h>
Detailed Description
template<class T_, class M_>
class OFELI::IdentPrec< T_, M_ >
To set identity preconditioner (No preconditioning).
Template Arguments:
- T_ : data type (double, float, ...)
- M_ : matrix class
Public Member Functions | |
| IdentPrec (const M_ &A) | |
| Constructor using matrix of the linear system to precondition. | |
| void | Solve (const Vect< T_ > &b, Vect< T_ > &x) const |
| Solve a linear system with preconditioning matrix. | |
| void | Solve (Vect< T_ > &x) const |
| Solve a linear system with preconditioning matrix. | |
| void | TransSolve (const Vect< T_ > &b, Vect< T_ > &x) const |
| Solve a linear system with transposed preconditioning matrix. | |
| void | TransSolve (Vect< T_ > &x) const |
| Solve a linear system with transposed preconditioning matrix. | |
| ~IdentPrec () | |
| Destructor. | |
Member Function Documentation
Solve a linear system with preconditioning matrix.
- Parameters:
-
[in] b Right-hand side. [out] x Solution vector.
| void Solve | ( | Vect< T_ > & | x | ) | const |
Solve a linear system with preconditioning matrix.
- Parameters:
-
[in,out] x Right-hand side in input and solution in output.
Solve a linear system with transposed preconditioning matrix.
- Parameters:
-
[in] b Right-hand side. [out] x Solution vector.
| void TransSolve | ( | Vect< T_ > & | x | ) | const |
Solve a linear system with transposed preconditioning matrix.
- Parameters:
-
[in,out] x Right-hand side in input and solution in output.