NLA-lib Explorer

NLAlib.ShiftedQR.shiftedRowSolve_writes

Library · theorem

Exact arithmetic

The actual stored shift yields either a certified singular shifted matrix or its exact inverse row, without any assumption that the shift avoids the spectrum. All scratch is scoped. [GolubVanLoan2013, §5.2.5]. A fragment of the exact decoupler NLAlib.ShiftedQR.scalarDecouple, which exact shifted QR (NLAlib.ShiftedQR.deflationRoutine) takes as its decoupler.

NLAlib.ShiftedQR.shiftedRowSolve_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 : ℕ}
  {a s v f : ℕ × ℕ} {H : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ} {shift : ℂ} {w : Fin (n + 1) → ℂ}
  (hH : IsUpperHessenberg H) (hA : HoldsMatrix a H m.store)
  (hs : m.store.readBlock s.1 s.2 2 = some [shift.re, shift.im])
  (hV : ShiftedQR.HoldsVector v w m.store) (hfv : f.1 ≠ v.1) (hf : f.2 + 1 ≤ m.store.len f.1) :
  Ops.Writes Ops.Mode.total I τ ShiftedQR.shiftedRowSolve (Ops.Env.frame [n + 1] [a, s, v, v, f])
    (Ops.Store.inBlock v.1 v.2 (2 * (n + 1)) ⊔ Ops.Store.inBlock f.1 f.2 1)
    (fun m' ↦ m'.pos = m.pos ∧ ShiftedQR.RowSolveResult v f (H - shift • 1) w m'.store) m

Full source on GitHub

Import NLAlib.Eigensolvers.ShiftedQR.RowSolveShifted.