MTL5 -- Matrix Template Library C++ API
mtl:: -- C++20 header-only linear algebra for mixed-precision algorithm design
Loading...
Searching...
No Matches
mtl::itl::smoother::symmetric_gauss_seidel< Matrix, Accumulator > Class Template Reference

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

Detailed Description

template<FieldMatrix Matrix, typename Accumulator = void>
class mtl::itl::smoother::symmetric_gauss_seidel< Matrix, Accumulator >

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.

Constructor & Destructor Documentation

◆ symmetric_gauss_seidel()

template<FieldMatrix Matrix, typename Accumulator = void>
mtl::itl::smoother::symmetric_gauss_seidel< Matrix, Accumulator >::symmetric_gauss_seidel ( const Matrix & A)
inlineexplicit

Member Function Documentation

◆ operator()()

template<FieldMatrix Matrix, typename Accumulator = void>
template<typename VecX, typename VecB>
VecX & mtl::itl::smoother::symmetric_gauss_seidel< Matrix, Accumulator >::operator() ( VecX & x,
const VecB & b ) const
inline

The documentation for this class was generated from the following file: