NLA-lib Explorer

NLAlib.ShiftedQR.repeatedStep_writes

Library · theorem

Exact arithmetic

The scoped repeated-shift program returns the exact repeated mathematical QR step in its original matrix view and releases its one temporary matrix. A fragment of the exact decoupler NLAlib.ShiftedQR.scalarDecouple, which exact shifted QR (NLAlib.ShiftedQR.deflationRoutine) takes as its decoupler.

NLAlib.ShiftedQR.repeatedStep_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 k : ℕ}
  {a s : ℕ × ℕ} {H : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ} {shift : ℂ} (hl : m.Live [a, s, a])
  (hH : HoldsMatrix a H m.store) (hs : m.store.readBlock s.1 s.2 2 = some [shift.re, shift.im])
  (hsa :
    Ops.Fp.Disj (Ops.Store.inBlock s.1 s.2 2)
      (Ops.Store.inBlock a.1 a.2 (2 * ((n + 1) * (n + 1))))) :
  Ops.Writes Ops.Mode.total I τ ShiftedQR.repeatedStep (Ops.Env.frame [n + 1, k] [a, s, a])
    (Ops.Store.inBlock a.1 a.2 (2 * ((n + 1) * (n + 1))))
    (fun μ ↦ μ.pos = m.pos ∧ HoldsMatrix a (multiShiftedQRStep H (List.replicate k shift)) μ.store)
    m

Full source on GitHub

Import NLAlib.Eigensolvers.ShiftedQR.MultiStep.