NLA-lib Explorer

NLAlib.ShiftedQR.factorRows_writes

Library · theorem

Exact arithmetic

The scalar factorization sweep returns the full Givens triangular factor and the saved rotation sequence. Every pair, including zero pairs, follows the actual coefficient branch. [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.factorRows_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 cf : ℕ × ℕ} {D : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ} (hac : a.1 ≠ cf.1)
  (hH : HoldsMatrix a D m.store) (hcf : cf.2 + 4 * (n + 1) ≤ m.store.len cf.1) :
  Ops.Writes Ops.Mode.total I τ ShiftedQR.factorRows (Ops.Env.frame [n + 1] [a, cf, a, cf])
    (Ops.Store.inBlock a.1 a.2 (2 * ((n + 1) * (n + 1))) ⊔
      Ops.Store.inBlock cf.1 cf.2 (4 * (n + 1)))
    (fun m' ↦
      m'.pos = m.pos ∧
        HoldsMatrix a (givensHessenbergR D) m'.store ∧ ShiftedQR.HoldsCoefficients cf D n m'.store)
    m

Full source on GitHub

Import NLAlib.Eigensolvers.ShiftedQR.RowSolveFactor.