NLAlib.ShiftedQR.sweep_writes
Library · theorem
Exact arithmetic
The initialized scalar sweep computes the existing Givens state and conjugates the output by its accumulated unitary factor. This covers zero-size sweeps and zero coefficient pairs. Shared by the trees of NLAlib.ShiftedQR.shiftedStepRoutine, NLAlib.ShiftedQR.shqrSmallEigRoutine and NLAlib.SmallEig.smallEigRoutine, on their scratch.
NLAlib.ShiftedQR.sweep_writes {Op Tst : Type} [Ops.Has Ops.ScalarOp Op] [Ops.Has Ops.CmpTst Tst]
{M : Ops.Machine ℝ} {I : Ops.Interp Op Tst ℝ} (hS : Ops.IsScalar M I) (hE : Ops.ExactModel id M)
(hCmp : Ops.IsCmp id I) {τ : Ops.Tape ℝ} {m : Ops.Mem ℝ} {n : ℕ} {w z cf : ℕ × ℕ}
{W H : Matrix (Fin n) (Fin n) ℂ} (hW : HoldsMatrix w W m.store) (hH : HoldsMatrix z H m.store)
(hc : cf.2 + 4 ≤ m.store.len cf.1)
(hwz :
Ops.Fp.Disj (Ops.Store.inBlock w.1 w.2 (2 * (n * n))) (Ops.Store.inBlock z.1 z.2 (2 * (n * n))))
(hwc : Ops.Fp.Disj (Ops.Store.inBlock w.1 w.2 (2 * (n * n))) (Ops.Store.inBlock cf.1 cf.2 4))
(hzc : Ops.Fp.Disj (Ops.Store.inBlock z.1 z.2 (2 * (n * n))) (Ops.Store.inBlock cf.1 cf.2 4))
(hl : m.Live [w, z, cf, w, z]) :
Ops.Writes Ops.Mode.total I τ ShiftedQR.sweep (Ops.Env.frame [n] [w, z, cf, w, z])
(Ops.Store.inBlock w.1 w.2 (2 * (n * n)) ⊔ Ops.Store.inBlock z.1 z.2 (2 * (n * n)) ⊔
Ops.Store.inBlock cf.1 cf.2 4)
(fun m' ↦
m'.pos = m.pos ∧
HoldsMatrix w (givensHessenbergState W (n - 1)).2 m'.store ∧
HoldsMatrix z
((givensHessenbergState W (n - 1)).1ᴴ * H * (givensHessenbergState W (n - 1)).1)
m'.store)
mImport NLAlib.Eigensolvers.ShiftedQR.Sweep.