Jet
v1.3.3
|
2-D finite difference-type linear system solver using conjugate gradient. More...
#include <jet/fdm_cg_solver2.h>
Public Member Functions | |
FdmCgSolver2 (unsigned int maxNumberOfIterations, double tolerance) | |
Constructs the solver with given parameters. More... | |
bool | solve (FdmLinearSystem2 *system) override |
Solves the given linear system. More... | |
bool | solveCompressed (FdmCompressedLinearSystem2 *system) override |
Solves the given compressed linear system. More... | |
unsigned int | maxNumberOfIterations () const |
Returns the max number of CG iterations. More... | |
unsigned int | lastNumberOfIterations () const |
Returns the last number of CG iterations the solver made. More... | |
double | tolerance () const |
Returns the max residual tolerance for the CG method. More... | |
double | lastResidual () const |
Returns the last residual after the CG iterations. More... | |
![]() | |
FdmLinearSystemSolver2 ()=default | |
virtual | ~FdmLinearSystemSolver2 ()=default |
2-D finite difference-type linear system solver using conjugate gradient.
jet::FdmCgSolver2::FdmCgSolver2 | ( | unsigned int | maxNumberOfIterations, |
double | tolerance | ||
) |
Constructs the solver with given parameters.
unsigned int jet::FdmCgSolver2::lastNumberOfIterations | ( | ) | const |
Returns the last number of CG iterations the solver made.
double jet::FdmCgSolver2::lastResidual | ( | ) | const |
Returns the last residual after the CG iterations.
unsigned int jet::FdmCgSolver2::maxNumberOfIterations | ( | ) | const |
Returns the max number of CG iterations.
|
overridevirtual |
Solves the given linear system.
Implements jet::FdmLinearSystemSolver2.
|
overridevirtual |
Solves the given compressed linear system.
Reimplemented from jet::FdmLinearSystemSolver2.
double jet::FdmCgSolver2::tolerance | ( | ) | const |
Returns the max residual tolerance for the CG method.