CG iterative solver.
More...
#include <CG.h>
template<int D>
class ThunderEgg::Iterative::CG< D >
CG iterative solver.
- Template Parameters
-
D | the number of Cartesian dimensions |
◆ clone()
◆ getMaxIterations()
Get the maximum number of iterations.
Default is 1000
- Returns
- int the maximum number of iterations
◆ getTimer()
Get the Timer object.
- Returns
- std::shared_ptr<Timer> the Timer
◆ getTolerance()
Get the stopping tolerance.
Default is 1e-12
- Returns
- double the stopping tolerance
◆ setMaxIterations()
Set the maximum number of iterations.
Default is 1000
- Parameters
-
max_iterations_in | the maximum number of iterations |
◆ setTimer()
Set the Timer object.
- Parameters
-
◆ setTolerance()
Set the stopping tolerance.
Default is 1e-12
- Parameters
-
tolerance_in | the stopping tolerance |
◆ solve()
Perform an iterative solve.
- Parameters
-
A | the matrix |
x | the initial LHS guess. |
b | the RHS vector. |
Mr | the right preconditioner. Set to nullptr if there is no right preconditioner. |
output | print output to the provided stream |
os | the stream to output to |
- Returns
- the number of iterations
Implements ThunderEgg::Iterative::Solver< D >.
The documentation for this class was generated from the following file:
- src/ThunderEgg/Iterative/CG.h