NLAlib.CGRun.ofOneStep
Library · def
Construct the existing one-step CG run from a zero-start recurrence and its bounded local errors, including a possibly zero final residual. [Greenbaum1997SIMAX, §2].
NLAlib.CGRun.ofOneStep (N : ℕ) (A : Matrix (Fin N) (Fin N) ℝ) (b : Fin N → ℝ)
(next : CGState ℝ (Fin N)) (sv : Fin N → ℝ) (ε ν0 ν1 θ0 θ1 μ γ eγ δ eδ : ℝ) (hA : Aᵀ = A)
(hε : 0 ≤ ε) (hεle : ε ≤ 1 / 100) (hν0 : ν0 = ‖WithLp.toLp 2 b‖ ^ 2 * (1 + θ0))
(hν1 : ν1 = ‖WithLp.toLp 2 next.r‖ ^ 2 * (1 + θ1)) (hθ0 : |θ0| ≤ ε) (hθ1 : |θ1| ≤ ε)
(hνpos : 0 < ν0) (hμpos : 0 < μ)
(hs : ‖WithLp.toLp 2 (A *ᵥ b - sv)‖ ≤ ε * specNorm A * ‖WithLp.toLp 2 b‖)
(hμ : |b ⬝ᵥ sv - μ| ≤ ε * ‖WithLp.toLp 2 b‖ * ‖WithLp.toLp 2 sv‖) (hγ : γ = ν0 / μ * (1 + eγ))
(heγ : |eγ| ≤ ε) (hδ : δ = ν1 / ν0 * (1 + eδ)) (heδ : |eδ| ≤ ε)
(hex : ‖WithLp.toLp 2 (γ • b - next.x)‖ ≤ ε * (|γ| * ‖WithLp.toLp 2 b‖))
(her : ‖WithLp.toLp 2 (b - γ • sv - next.r)‖ ≤ ε * (‖WithLp.toLp 2 b‖ + |γ| * ‖WithLp.toLp 2 sv‖))
(hep :
‖WithLp.toLp 2 (next.r + δ • b - next.p)‖ ≤
ε * (‖WithLp.toLp 2 next.r‖ + |δ| * ‖WithLp.toLp 2 b‖)) :
CGRun N 1Import NLAlib.Krylov.FinitePrecision.CGRunConstruction.