NLAlib.ShiftedQR.copyToWork_writes
Library · theorem
Copying a bounded diagonal block uses its actual raw matrix words. Workspace capacity is persistent, the matrix/work views are separate, and no initialized workspace is required. Shared by the trees of NLAlib.ShiftedQR.shqrSmallEigRoutine and NLAlib.SmallEig.smallEigRoutine, on their scratch.
NLAlib.ShiftedQR.copyToWork_writes {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 ℝ} {n lo d : ℕ}
{a w : ℕ × ℕ} {H : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ} (hl : m.Live [a, w])
(hH : HoldsMatrix a H m.store) (hr : lo + d ≤ n + 1) (hw : w.2 + 2 * (d * d) ≤ m.store.len w.1)
(hd :
Ops.Fp.Disj (Ops.Store.inBlock a.1 a.2 (2 * ((n + 1) * (n + 1))))
(Ops.Store.inBlock w.1 w.2 (2 * (d * d)))) :
Ops.Writes Ops.Mode.total I τ ShiftedQR.copyToWork (Ops.Env.frame [n + 1, lo, d] [a, w])
(Ops.Store.inBlock w.1 w.2 (2 * (d * d)))
(fun m' ↦ m'.pos = m.pos ∧ HoldsMatrix w (subBlock H (lo, d)) m'.store) mImport NLAlib.Eigensolvers.ShiftedQR.BlockCopy.