ILUPrec Class Template Reference
[Solver]
#include <Precond.h>
Detailed Description
template<class T_, class M_>
class OFELI::ILUPrec< T_, M_ >
To set ILU (Incomplete LU factorization) preconditioner.
Template Arguments:
- T_ : data type (double, float, ...)
- M_ : matrix class
Public Member Functions | |
| T_ & | getPivot (size_t i) const |
| Return i-th pivot of preconditioning matrix. | |
| ILUPrec (const M_ &a) | |
| Constructor using matrix of the linear system to precondition. | |
| ILUPrec () | |
| Default constructor. | |
| void | setMatrix (const M_ &a) |
| Define the matrix for preconditioning. | |
| 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. | |
| ~ILUPrec () | |
| Destructor. | |
Constructor & Destructor Documentation
| ILUPrec | ( | ) |
Default constructor.
Does nothing: Just to declare an instance
Member Function Documentation
| void setMatrix | ( | const M_ & | a | ) |
Define the matrix for preconditioning.
- Parameters:
-
[in] a Matrix for preconditioning
Referenced by ILUPrec::ILUPrec().
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
References ILUPrec::TransSolve().
| 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.
Referenced by ILUPrec::TransSolve().