NLA-lib Explorer

NLAlib.SmallEig.gaussDraws_writes

Library · theorem

On an interpretation whose draws store the tape entry (NLAlib.Ops.IsSample), with room for m words at g, NLAlib.SmallEig.gaussDraws writes only those words, stores the window of m entries of the stream sG at the current position, and advances the position by m. Shared by the trees of NLAlib.ShiftedQR.shqrSmallEigRoutine and NLAlib.SmallEig.smallEigRoutine, on their scratch.

NLAlib.SmallEig.gaussDraws_writes {O Q : Type} [Ops.Has Ops.SampleOp O] {I : Ops.Interp O Q ℝ}
  (hSmp : Ops.IsSample I) {sG m : ℕ} {τ : Ops.Tape ℝ} {μ : Ops.Mem ℝ} {g : ℕ × ℕ} (hl : μ.Live [g])
  (hg : g.2 + m ≤ μ.store.len g.1) :
  Ops.Writes Ops.Mode.total I τ (SmallEig.gaussDraws sG) (Ops.Env.frame [m] [g])
    (Ops.Store.inBlock g.1 g.2 m)
    (fun μ' ↦ μ'.pos = μ.pos + m ∧ μ'.store.readBlock g.1 g.2 m = some (τ.window sG μ.pos m)) μ

Full source on GitHub

Import NLAlib.Eigensolvers.SmallEig.Draws.