num::randommat::grounded_approx_chol_factor¶
Defined in header <linear/graph/randommat/preconditioner.hpp>
class grounded_approx_chol_factor final;
Approximate Cholesky factor of an SDDM matrix, through an extra ground vertex: \(A \approx C C^T\).
Members¶
| member | description |
|---|---|
using domain_type = vec<real> |
|
using codomain_type = vec<real> |
|
using laws = law::list<law::spd> |
|
explicit grounded_approx_chol_factor(cholesky_factor<real, idx> factor) |
|
idx rows() const noexcept |
|
idx cols() const noexcept |
|
vec<real> apply_lower(const vec<real> &x) const |
Multiply by the factor: \(y \leftarrow C x\). |
vec<real> solve_lower(const vec<real> &b) const |
Solve with the factor by forward substitution: \(y \leftarrow C^{-1} b\). |
vec<real> solve_upper(const vec<real> &b) const |
Solve with the transposed factor by backward substitution: \(y \leftarrow C^{-T} b\). |
void apply(const vec<real> &b, vec<real> &x) const |
Apply the preconditioner: \(x \leftarrow C^{-T} C^{-1} b\). |
const cholesky_factor<real, idx> &factor() const noexcept |