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