Loading...
Searching...
No Matches
FDMCGSolver2.hpp
Go to the documentation of this file.
2-D finite difference-type linear system solver using conjugate gradient.
Definition FDMCGSolver2.hpp:21
bool Solve(FDMLinearSystem2 *system) override
Solves the given linear system.
bool SolveCompressed(FDMCompressedLinearSystem2 *system) override
Solves the given compressed linear system.
unsigned int GetMaxNumberOfIterations() const
Returns the max number of Jacobi iterations.
double GetLastResidual() const
Returns the last residual after the Jacobi iterations.
double GetTolerance() const
Returns the max residual tolerance for the Jacobi method.
unsigned int GetLastNumberOfIterations() const
Returns the last number of Jacobi iterations the solver made.
FDMCGSolver2(unsigned int maxNumberOfIterations, double tolerance)
Constructs the solver with given parameters.
Abstract base class for 2-D finite difference-type linear system solver.
Definition FDMLinearSystemSolver2.hpp:20
Definition Matrix.hpp:30
Definition pybind11Utils.hpp:21
std::shared_ptr< FDMCGSolver2 > FDMCGSolver2Ptr
Shared pointer type for the FDMCGSolver2.
Definition FDMCGSolver2.hpp:67
Compressed linear system (Ax=b) for 2-D finite differencing.
Definition FDMLinearSystem2.hpp:60
Linear system (Ax=b) for 2-D finite differencing.
Definition FDMLinearSystem2.hpp:41
1.9.8