Skip to content

num::jacobi_preconditioner

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

class jacobi_preconditioner final;

Preconditioner by the inverse diagonal (Jacobi): \(M^{-1} = D^{-1}\).

Members

member description
using domain_type = vec<real>
using codomain_type = vec<real>
using laws = law::list<law::spd>
explicit jacobi_preconditioner(vec<real> inv_diag) Construct the preconditioner from \(D^{-1}\).
idx rows() const noexcept
idx cols() const noexcept
void apply(const vec<real> &r, vec<real> &z) const Apply the preconditioner: \(z \leftarrow D^{-1} r\).