NLA-lib Explorer

NLAlib.ShiftedQR.factorRound_writes

Library · theorem

Exact arithmetic

One retained Givens rotation advances the exact matrix state and its coefficient prefix. [GolubVanLoan2013, Algorithm 5.2.4]. A fragment of the exact decoupler NLAlib.ShiftedQR.scalarDecouple, which exact shifted QR (NLAlib.ShiftedQR.deflationRoutine) takes as its decoupler.

NLAlib.ShiftedQR.factorRound_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 cf : ℕ × ℕ} {D : Matrix (Fin n) (Fin n) ℂ} (hk : k + 1 < n) (hac : a.1 ≠ cf.1)
  (hH : HoldsMatrix a (givensHessenbergState D k).2 m.store)
  (hC : ShiftedQR.HoldsCoefficients cf D k m.store) (hcf : cf.2 + 4 * n ≤ m.store.len cf.1) :
  Ops.Writes Ops.Mode.total I τ ShiftedQR.factorRound (Ops.Env.frame [n, k] [a, cf, a, cf])
    (Ops.Store.inBlock a.1 a.2 (2 * (n * n)) ⊔ Ops.Store.inBlock cf.1 (cf.2 + 4 * k) 4)
    (fun m' ↦
      m'.pos = m.pos ∧
        HoldsMatrix a (givensHessenbergState D (k + 1)).2 m'.store ∧
          ShiftedQR.HoldsCoefficients cf D (k + 1) m'.store)
    m

Full source on GitHub

Import NLAlib.Eigensolvers.ShiftedQR.RowSolveFactor.