Skip to content

num::chebyshev_preconditioner

Defined in header <linear/solvers/chebyshev.hpp>

template <class Op>
requires math::spd_operator<Op>
class chebyshev_preconditioner final;

Preconditioner by a Chebyshev polynomial: \(M^{-1} = p_m(A)\). \(p_m\) minimizes \(\max_{\lambda \in [\ell, h]} |1 - \lambda p(\lambda)|\).

Warning

SPD only if \([\ell, h]\) encloses the spectrum; otherwise PCG may diverge.

Warning

References A; it must outlive the preconditioner.

Members

member description
using domain_type = vec<real>
using codomain_type = vec<real>
using laws = law::list<law::spd> Declared SPD; valid only when the interval contains every eigenvalue.
chebyshev_preconditioner(const Op &A, real lo, real hi, idx degree) Construct a Chebyshev preconditioner of degree degree on \([\ell, h]\).
idx rows() const noexcept
idx cols() const noexcept
idx degree() const noexcept
void apply(const vec<real> &r, vec<real> &z) const Apply the preconditioner: \(z \leftarrow p_m(A) r\).