Skip to content

num::ilu0_preconditioner

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

class ilu0_preconditioner final;

ILU(0) preconditioner: \(M^{-1} r\) by two sparse triangular solves.

Holds its own copy of the factored values, so the source matrix need not outlive it. Allocates nothing after construction.

Members

member description
using domain_type = vec<real>
using codomain_type = vec<real>
explicit ilu0_preconditioner(const spmat &A) Factor A in place over its own pattern.
idx rows() const noexcept
idx cols() const noexcept
idx nnz() const noexcept
void apply(const vec<real> &r, vec<real> &z) const Apply \(z \leftarrow (LU)^{-1} r\).