num::jacobi_preconditioner¶
Defined in header <linear/solvers/preconditioner.hpp>
class jacobi_preconditioner final;
Diagonal inverse preconditioner.
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) |
Take ownership of a precomputed inverse diagonal. |
idx rows() const noexcept |
|
idx cols() const noexcept |
|
void apply(const vec<real> &r, vec<real> &z) const |
Compute z=D^-1 r. |