NLAlib.ShiftedQR.subdiagProductWithScratch_writes
Library · theorem
Exact arithmetic
The scalar product returns exactly the mathematical squared-potential statistic. Spatial separation preserves the input matrix and permits disjoint views of one underlying buffer. Shared by the trees of NLAlib.ShiftedQR.scalarDecouple and NLAlib.ShiftedQR.shqrSmallEigRoutine, on their scratch.
NLAlib.ShiftedQR.subdiagProductWithScratch_writes {Op Tst : Type} [Ops.Has Ops.ScalarOp Op]
{M : Ops.Machine ℝ} {I : Ops.Interp Op Tst ℝ} (hS : Ops.IsScalar M I) (hE : Ops.ExactModel id M)
{τ : Ops.Tape ℝ} {m : Ops.Mem ℝ} {n k : ℕ} {a t p : ℕ × ℕ}
{H : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ} (hk : k ≤ n) (hH : HoldsMatrix a H m.store)
(ht : t.2 + 3 ≤ m.store.len t.1) (hp : p.2 < m.store.len p.1)
(hat :
Ops.Fp.Disj (Ops.Store.inBlock a.1 a.2 (2 * ((n + 1) * (n + 1)))) (Ops.Store.inBlock t.1 t.2 3))
(hap :
Ops.Fp.Disj (Ops.Store.inBlock a.1 a.2 (2 * ((n + 1) * (n + 1)))) (Ops.Store.inBlock p.1 p.2 1))
(htp : Ops.Fp.Disj (Ops.Store.inBlock t.1 t.2 3) (Ops.Store.inBlock p.1 p.2 1)) :
Ops.Writes Ops.Mode.total I τ ShiftedQR.subdiagProductWithScratch
(Ops.Env.frame [n + 1, k] [a, t, p]) (Ops.Store.inBlock p.1 p.2 1 ⊔ Ops.Store.inBlock t.1 t.2 3)
(fun m' ↦ m'.pos = m.pos ∧ m'.store.get p.1 p.2 = some (subdiagNormSqProd k H)) mImport NLAlib.Eigensolvers.ShiftedQR.Potential.