|
MTL5 -- Matrix Template Library C++ API
mtl:: -- C++20 header-only linear algebra for mixed-precision algorithm design
|
Symmetric Gauss-Seidel (SGS): one forward sweep immediately followed by one backward sweep per application. More...
#include <gauss_seidel.hpp>
Public Member Functions | |
| symmetric_gauss_seidel (const Matrix &A) | |
| template<typename VecX, typename VecB> | |
| VecX & | operator() (VecX &x, const VecB &b) const |
Symmetric Gauss-Seidel (SGS): one forward sweep immediately followed by one backward sweep per application.
For symmetric A this application is itself symmetric (SPD-preserving), which is why Krylov methods use it as a preconditioner – hence a first-class primitive rather than a caller-side compose. Carries the optional Accumulator through both sweeps.
|
inlineexplicit |
|
inline |