NLA-lib Explorer

NLAlib.Krylov.CG.HSCG.Carried.Rounded.StoresValues.read_x_r

Library · theorem

The physical iterate and residual are readable as decoded vectors.

NLAlib.Krylov.CG.HSCG.Carried.Rounded.StoresValues.read_x_r {K : Type} [Inhabited K] {dec : K → ℝ}
  {n : ℕ} {x r p v : ℕ × ℕ} {s : CGState ℝ (Fin n)} {rho : ℝ} {μ : Ops.Mem K}
  (h : Krylov.CG.HSCG.Carried.Rounded.StoresValues dec n x r p v s rho μ) :
  ∃ xs rs,
    μ.store.readBlock x.1 x.2 n = some xs ∧
      Ops.decv dec n xs = s.x ∧ μ.store.readBlock r.1 r.2 n = some rs ∧ Ops.decv dec n rs = s.r

Full source on GitHub

Import NLAlib.Krylov.CG.HSCG.Carried.Rounded.State.