NLA-lib Explorer

NLAlib.ShiftedQR.comptau_writes_word

Library · theorem

comptau on any scalar machine stores NLAlib.ShiftedQR.comptauWord of the stored pairs and writes only its output word. The pairs and the output are disjoint views. Shared by the trees of NLAlib.ShiftedQR.shqrSmallEigRoutine and NLAlib.SmallEig.smallEigRoutine, on their scratch.

NLAlib.ShiftedQR.comptau_writes_word {Op Tst : Type} [Ops.Has Ops.ScalarOp Op] {M : Ops.Machine ℝ}
  {I : Ops.Interp Op Tst ℝ} (hS : Ops.IsScalar M I) {τ : Ops.Tape ℝ} {m : Ops.Mem ℝ} {zs : List ℂ}
  {d p : ℕ × ℕ}
  (hD : m.store.readBlock d.1 d.2 (2 * zs.length) = some (List.flatMap (fun z ↦ [z.re, z.im]) zs))
  (hl : m.Live [d, p]) (hp : p.2 < m.store.len p.1)
  (hdp : Ops.Fp.Disj (Ops.Store.inBlock d.1 d.2 (2 * zs.length)) (Ops.Store.inBlock p.1 p.2 1)) :
  Ops.Writes Ops.Mode.total I τ ShiftedQR.comptau (Ops.Env.frame [zs.length] [d, p])
    (Ops.Store.inBlock p.1 p.2 1)
    (fun m' ↦ m'.pos = m.pos ∧ m'.store.get p.1 p.2 = some (ShiftedQR.comptauWord M zs)) m

Full source on GitHub

Import NLAlib.Eigensolvers.ShiftedQR.RoundedRitz.