NLA-lib Explorer

NLAlib.RefinementRun.extend

Library · def

One more step of a run: a run of k steps, with a residual \mathbf{r}, a correction \mathbf{d} and a next iterate \mathbf{x}' that meet the three local bounds at \mathbf{x}_k, is a run of k + 1 steps with \mathbf{x}_{k+1} = \mathbf{x}'. An execution theorem builds its run with it, one step of the program at a time.

NLAlib.RefinementRun.extend.{u_1, u_2} {𝕜 : Type u_1} [RCLike 𝕜] {n : Type u_2} [Fintype n]
  [DecidableEq n] {k : ℕ} {A : Matrix n n 𝕜} {b : n → 𝕜} {θ η ζ ε : ℝ}
  (R : RefinementRun A b θ η ζ ε k) (r d x' : n → 𝕜)
  (hr :
    ‖WithLp.toLp 2 (b - A *ᵥ R.x k - r)‖ ≤
      ζ * ‖WithLp.toLp 2 (b - A *ᵥ R.x k)‖ +
        η * (‖WithLp.toLp 2 b‖ + specNorm A * ‖WithLp.toLp 2 (R.x k)‖))
  (hd : ‖WithLp.toLp 2 (A⁻¹ *ᵥ r - d)‖ ≤ θ * ‖WithLp.toLp 2 (A⁻¹ *ᵥ r)‖)
  (hx : ‖WithLp.toLp 2 (R.x k + d - x')‖ ≤ ε * ‖WithLp.toLp 2 (R.x k + d)‖) :
  RefinementRun A b θ η ζ ε (k + 1)

Full source on GitHub

Import NLAlib.Matrix.FinitePrecision.RefinementRun.