NLA-lib Explorer

NLAlib.ShiftedQR.reverseVectorRotations_writes

Library · theorem

Exact arithmetic

The actual reverse loop applies every stored factorization rotation, from the last adjacent pair to the first, and returns the mathematical reverse-rotation state. A fragment of the exact decoupler NLAlib.ShiftedQR.scalarDecouple, which exact shifted QR (NLAlib.ShiftedQR.deflationRoutine) takes as its decoupler.

NLAlib.ShiftedQR.reverseVectorRotations_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 : ℕ} {v cf t : ℕ × ℕ} {D : Matrix (Fin n) (Fin n) ℂ}
  {w : Fin n → ℂ} (hV : ShiftedQR.HoldsVector v w m.store)
  (hCf : ShiftedQR.HoldsCoefficients cf D (n - 1) m.store) (hvc : v.1 ≠ cf.1) (htv : t.1 ≠ v.1)
  (htc : t.1 ≠ cf.1) (ht : t.2 + 10 ≤ m.store.len t.1) :
  Ops.Writes Ops.Mode.total I τ ShiftedQR.reverseVectorRotations (Ops.Env.frame [n] [v, cf, t, v])
    (Ops.Store.inBlock v.1 v.2 (2 * n) ⊔ Ops.Store.inBlock t.1 t.2 10)
    (fun μ ↦
      μ.pos = m.pos ∧
        ShiftedQR.HoldsVector v (ShiftedQR.reverseRotations D (n - 1) w (n - 1)) μ.store)
    m

Full source on GitHub

Import NLAlib.Eigensolvers.ShiftedQR.RowSolveVector.