NLA-lib Explorer

NLAlib.PCGRun.ofOneStep

Library · def

Construct a one-step zero-start PCG run from local bounded numerical defects, a Hermitian system and an SPD reference inverse preconditioner. The approximate action need not be linear. The final pairing may be zero. [Saad2003, Algorithm 9.1].

NLAlib.PCGRun.ofOneStep (N : ℕ) (A P : Matrix (Fin N) (Fin N) ℝ) (O : MatvecOracle P)
  (b : Fin N → ℝ) (next : PCGState ℝ (Fin N)) (sv : Fin N → ℝ) (ε ν0 ν1 μ γ eγ δ eδ : ℝ)
  (hA : A.IsHermitian) (hP : P.PosDef) (hε : 0 ≤ ε) (hεle : ε ≤ 1 / 100)
  (hz : next.z = O.mulVec next.r)
  (hν0 : |ν0 - b ⬝ᵥ O.mulVec b| ≤ ε * ‖WithLp.toLp 2 b‖ * ‖WithLp.toLp 2 (O.mulVec b)‖)
  (hν1 : |ν1 - next.r ⬝ᵥ next.z| ≤ ε * ‖WithLp.toLp 2 next.r‖ * ‖WithLp.toLp 2 next.z‖)
  (hνlast : 0 ≤ ν1) (hνpos : 0 < ν0) (hμpos : 0 < μ)
  (hs : ‖WithLp.toLp 2 (A *ᵥ O.mulVec b - sv)‖ ≤ ε * specNorm A * ‖WithLp.toLp 2 (O.mulVec b)‖)
  (hμ : |O.mulVec b ⬝ᵥ sv - μ| ≤ ε * ‖WithLp.toLp 2 (O.mulVec b)‖ * ‖WithLp.toLp 2 sv‖)
  (hγ : γ = ν0 / μ * (1 + eγ)) (heγ : |eγ| ≤ ε) (hδ : δ = ν1 / ν0 * (1 + eδ)) (heδ : |eδ| ≤ ε)
  (hex : ‖WithLp.toLp 2 (γ • O.mulVec b - next.x)‖ ≤ ε * (|γ| * ‖WithLp.toLp 2 (O.mulVec b)‖))
  (her : ‖WithLp.toLp 2 (b - γ • sv - next.r)‖ ≤ ε * (‖WithLp.toLp 2 b‖ + |γ| * ‖WithLp.toLp 2 sv‖))
  (hep :
    ‖WithLp.toLp 2 (next.z + δ • O.mulVec b - next.p)‖ ≤
      ε * (‖WithLp.toLp 2 next.z‖ + |δ| * ‖WithLp.toLp 2 (O.mulVec b)‖)) :
  PCGRun N 1

Full source on GitHub

Import NLAlib.Krylov.FinitePrecision.PCGRunConstruction.