Jet
v1.3.3
|
3-D finite difference-type linear system solver using Jacobi method. More...
#include <jet/fdm_jacobi_solver3.h>
Public Member Functions | |
FdmJacobiSolver3 (unsigned int maxNumberOfIterations, unsigned int residualCheckInterval, double tolerance) | |
Constructs the solver with given parameters. More... | |
bool | solve (FdmLinearSystem3 *system) override |
Solves the given linear system. More... | |
bool | solveCompressed (FdmCompressedLinearSystem3 *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... | |
![]() | |
FdmLinearSystemSolver3 ()=default | |
virtual | ~FdmLinearSystemSolver3 ()=default |
Static Public Member Functions | |
static void | relax (const FdmMatrix3 &A, const FdmVector3 &b, FdmVector3 *x, FdmVector3 *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... | |
3-D finite difference-type linear system solver using Jacobi method.
jet::FdmJacobiSolver3::FdmJacobiSolver3 | ( | unsigned int | maxNumberOfIterations, |
unsigned int | residualCheckInterval, | ||
double | tolerance | ||
) |
Constructs the solver with given parameters.
unsigned int jet::FdmJacobiSolver3::lastNumberOfIterations | ( | ) | const |
Returns the last number of Jacobi iterations the solver made.
double jet::FdmJacobiSolver3::lastResidual | ( | ) | const |
Returns the last residual after the Jacobi iterations.
unsigned int jet::FdmJacobiSolver3::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::FdmLinearSystemSolver3.
|
overridevirtual |
Solves the given compressed linear system.
Reimplemented from jet::FdmLinearSystemSolver3.
double jet::FdmJacobiSolver3::tolerance | ( | ) | const |
Returns the max residual tolerance for the Jacobi method.