Loading...
Searching...
No Matches
FDMGaussSeidelSolver3.hpp
Go to the documentation of this file.
3-D finite difference-type linear system solver using Gauss-Seidel method.
Definition FDMGaussSeidelSolver3.hpp:21
double GetTolerance() const
Returns the max residual tolerance for the Gauss-Seidel method.
FDMGaussSeidelSolver3(unsigned int maxNumberOfIterations, unsigned int residualCheckInterval, double tolerance, double sorFactor=1.0, bool useRedBlackOrdering=false)
Constructs the solver with given parameters.
bool GetUseRedBlackOrdering() const
Returns true if red-black ordering is enabled.
double GetLastResidual() const
Returns the last residual after the Gauss-Seidel iterations.
double GetSORFactor() const
Returns the SOR (Successive Over Relaxation) factor.
unsigned int GetLastNumberOfIterations() const
Returns the last number of Gauss-Seidel iterations the solver made.
bool Solve(FDMLinearSystem3 *system) override
Solves the given linear system.
bool SolveCompressed(FDMCompressedLinearSystem3 *system) override
Solves the given compressed linear system.
static void RelaxRedBlack(const FDMMatrix3 &A, const FDMVector3 &b, double sorFactor, FDMVector3 *x)
Performs single Red-Black Gauss-Seidel relaxation step.
static void Relax(const FDMMatrix3 &A, const FDMVector3 &b, double sorFactor, FDMVector3 *x)
Performs single natural Gauss-Seidel relaxation step.
unsigned int GetMaxNumberOfIterations() const
Returns the max number of Gauss-Seidel iterations.
static void Relax(const MatrixCSRD &A, const VectorND &b, double sorFactor, VectorND *x)
Performs single natural Gauss-Seidel relaxation step for compressed sys.
Abstract base class for 3-D finite difference-type linear system solver.
Definition FDMLinearSystemSolver3.hpp:20
Definition Matrix.hpp:30
Definition pybind11Utils.hpp:21
std::shared_ptr< FDMGaussSeidelSolver3 > FDMGaussSeidelSolver3Ptr
Shared pointer type for the FDMGaussSeidelSolver3.
Definition FDMGaussSeidelSolver3.hpp:85
Compressed linear system (Ax=b) for 3-D finite differencing.
Definition FDMLinearSystem3.hpp:63
Linear system (Ax=b) for 3-D finite differencing.
Definition FDMLinearSystem3.hpp:44
1.9.8