NLA-lib Explorer

NLAlib.ShiftedQR.rowSolveAfterFlag_writes

Library · theorem

Exact arithmetic

Checked triangular substitution and saved reverse rotations return a genuine singularity certificate or the exact inverse row. The determinant is not assumed nonzero. [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.rowSolveAfterFlag_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 v cf z t f : ℕ × ℕ} {D : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ} {w : Fin (n + 1) → ℂ}
  (hD : IsUpperHessenberg D) (hR : HoldsMatrix a (givensHessenbergR D) m.store)
  (hV : ShiftedQR.HoldsVector v w m.store) (hCf : ShiftedQR.HoldsCoefficients cf D n m.store)
  (hSep : ShiftedQR.RowSolveSeparate a v cf z t f) (hf0 : m.store.get f.1 f.2 = some 0)
  (hc : cf.2 + 4 * (n + 1) ≤ m.store.len cf.1) (hz : z.2 + 2 ≤ m.store.len z.1)
  (ht : t.2 + 10 ≤ m.store.len t.1) (hf : f.2 + 1 ≤ m.store.len f.1) :
  Ops.Writes Ops.Mode.total I τ ShiftedQR.rowSolveAfterFlag
    (Ops.Env.frame [n + 1] [a, v, cf, z, t, f, v, f]) (ShiftedQR.rowSolveFp (n + 1) a v cf z t f)
    (fun m' ↦ m'.pos = m.pos ∧ ShiftedQR.RowSolveResult v f D w m'.store) m

Full source on GitHub

Import NLAlib.Eigensolvers.ShiftedQR.RowSolveCore.