FDMJacobiSolver2.h
Go to the documentation of this file.
Linear system (Ax=b) for 2-D finite differencing.
Definition: FDMLinearSystem2.h:39
bool SolveCompressed(FDMCompressedLinearSystem2 *system) override
Solves the given compressed linear system.
unsigned int GetMaxNumberOfIterations() const
Returns the max number of Jacobi iterations.
unsigned int GetLastNumberOfIterations() const
Returns the last number of Jacobi iterations the solver made.
static void Relax(const FDMMatrix2 &A, const FDMVector2 &b, FDMVector2 *x, FDMVector2 *xTemp)
Performs single Jacobi relaxation step.
FDMJacobiSolver2(unsigned int maxNumberOfIterations, unsigned int residualCheckInterval, double tolerance)
Constructs the solver with given parameters.
Definition: pybind11Utils.h:24
bool Solve(FDMLinearSystem2 *system) override
Solves the given linear system.
std::shared_ptr< FDMJacobiSolver2 > FDMJacobiSolver2Ptr
Shared pointer type for the FDMJacobiSolver2.
Definition: FDMJacobiSolver2.h:70
Compressed linear system (Ax=b) for 2-D finite differencing.
Definition: FDMLinearSystem2.h:58
Abstract base class for 2-D finite difference-type linear system solver.
Definition: FDMLinearSystemSolver2.h:17
2-D finite difference-type linear system solver using Jacobi method.
Definition: FDMJacobiSolver2.h:17
double GetTolerance() const
Returns the max residual tolerance for the Jacobi method.
double GetLastResidual() const
Returns the last residual after the Jacobi iterations.