Jet
v1.3.3
|
2-D finite difference-type linear system solver using Jacobi method. More...
#include <jet/fdm_jacobi_solver2.h>
Public Member Functions | |
FdmJacobiSolver2 (unsigned int maxNumberOfIterations, unsigned int residualCheckInterval, 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 Jacobi iterations. More... | |
unsigned int | lastNumberOfIterations () const |
Returns the last number of Jacobi iterations the solver made. More... | |
double | tolerance () const |
Returns the max residual tolerance for the Jacobi method. More... | |
double | lastResidual () const |
Returns the last residual after the Jacobi iterations. More... | |
![]() | |
FdmLinearSystemSolver2 ()=default | |
virtual | ~FdmLinearSystemSolver2 ()=default |
Static Public Member Functions | |
static void | relax (const FdmMatrix2 &A, const FdmVector2 &b, FdmVector2 *x, FdmVector2 *xTemp) |
Performs single Jacobi relaxation step. More... | |
static void | relax (const MatrixCsrD &A, const VectorND &b, VectorND *x, VectorND *xTemp) |
Performs single Jacobi relaxation step for compressed sys. More... | |
2-D finite difference-type linear system solver using Jacobi method.
jet::FdmJacobiSolver2::FdmJacobiSolver2 | ( | unsigned int | maxNumberOfIterations, |
unsigned int | residualCheckInterval, | ||
double | tolerance | ||
) |
Constructs the solver with given parameters.
unsigned int jet::FdmJacobiSolver2::lastNumberOfIterations | ( | ) | const |
Returns the last number of Jacobi iterations the solver made.
double jet::FdmJacobiSolver2::lastResidual | ( | ) | const |
Returns the last residual after the Jacobi iterations.
unsigned int jet::FdmJacobiSolver2::maxNumberOfIterations | ( | ) | const |
Returns the max number of Jacobi iterations.
|
static |
Performs single Jacobi relaxation step.
|
static |
Performs single Jacobi relaxation step for compressed sys.
|
overridevirtual |
Solves the given linear system.
Implements jet::FdmLinearSystemSolver2.
|
overridevirtual |
Solves the given compressed linear system.
Reimplemented from jet::FdmLinearSystemSolver2.
double jet::FdmJacobiSolver2::tolerance | ( | ) | const |
Returns the max residual tolerance for the Jacobi method.