NLA-lib Explorer

NLAlib.ShiftedQR.finishHalfNorm_writes

Library · theorem

Exact arithmetic

The actual flag branch gives an initialized norm and exact classification, without assuming every candidate shift is nonsingular. [BanksGarzaVargasSrivastava2021, §4.3]. A fragment of the exact decoupler NLAlib.ShiftedQR.scalarDecouple, which exact shifted QR (NLAlib.ShiftedQR.deflationRoutine) takes as its decoupler.

NLAlib.ShiftedQR.finishHalfNorm_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 e : ℕ}
  {v t z f : ℕ × ℕ} {H : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ} {ss : List ℂ}
  (hstate : ShiftedQR.HalfVectorState v f H ss (ShiftedQR.halfSolvePrefix H ss e) m.store)
  (htv : t.1 ≠ v.1) (htf : t.1 ≠ f.1)
  (hzf : Ops.Fp.Disj (Ops.Store.inBlock z.1 z.2 1) (Ops.Store.inBlock f.1 f.2 1))
  (ht : t.2 + 3 ≤ m.store.len t.1) (hz : z.2 + 1 ≤ m.store.len z.1) :
  Ops.Writes Ops.Mode.total I τ ShiftedQR.finishHalfNorm (Ops.Env.frame [n + 1] [v, t, f, z, f])
    (Ops.Store.inBlock t.1 t.2 3 ⊔ Ops.Store.inBlock z.1 z.2 1)
    (fun m' ↦ m'.pos = m.pos ∧ ShiftedQR.HalfNormResult z f H ss e m'.store) m

Full source on GitHub

Import NLAlib.Eigensolvers.ShiftedQR.RowSolveHalfFinish.