num::ilu0_preconditioner¶
Defined in header <linear/solvers/ilu.hpp>
class ilu0_preconditioner final;
Preconditioner by incomplete LU factorization (ILU(0)): \(M^{-1} r = (L U)^{-1} r\).
Warning
Not symmetric, so it cannot precondition PCG or MINRES; use it with GMRES.
Notes¶
Reliable on diagonally dominant and M-matrix systems; elsewhere a pivot can vanish.
Members¶
| member | description |
|---|---|
using domain_type = vec<real> |
|
using codomain_type = vec<real> |
|
explicit ilu0_preconditioner(const spmat &A) |
Factor A by incomplete LU. |
idx rows() const noexcept |
|
idx cols() const noexcept |
|
idx nnz() const noexcept |
|
void apply(const vec<real> &r, vec<real> &z) const |
Apply the preconditioner: \(z \leftarrow (L U)^{-1} r\). |