NLAlib.ShiftedQR.replicatePair_writes
Library · theorem
NLAlib.ShiftedQR.replicatePair on any scalar machine stores the pair r of S k times at SR, writing only SR. Shared by the trees of NLAlib.ShiftedQR.shqrSmallEigRoutine, on their scratch.
NLAlib.ShiftedQR.replicatePair_writes {O Q : Type} [Ops.Has Ops.ScalarOp O] {M : Ops.Machine ℝ}
{I : Ops.Interp O Q ℝ} (hS : Ops.IsScalar M I) {τ : Ops.Tape ℝ} {m : Ops.Mem ℝ} {k : ℕ}
{sp sr : ℕ × ℕ} {r : ℂ} (hs : m.store.readBlock sp.1 sp.2 2 = some [r.re, r.im])
(hsr : sr.2 + 2 * k ≤ m.store.len sr.1)
(hd : Ops.Fp.Disj (Ops.Store.inBlock sp.1 sp.2 2) (Ops.Store.inBlock sr.1 sr.2 (2 * k))) :
Ops.Writes Ops.Mode.total I τ ShiftedQR.replicatePair (Ops.Env.frame [k] [sp, sr])
(Ops.Store.inBlock sr.1 sr.2 (2 * k))
(fun m' ↦
m'.pos = m.pos ∧
m'.store.readBlock sr.1 sr.2 (2 * (List.replicate k r).length) =
some (List.flatMap (fun z ↦ [z.re, z.im]) (List.replicate k r)))
mImport NLAlib.Eigensolvers.ShiftedQR.RoundedRegularizeTrial.