NLA-lib Explorer

NLAlib.ShiftedQR.finishRange_writes

Library · theorem

Finishing returns every root of the actual local matrix, with multiplicity, in the reserved global output range. The global output need not be initialized. A fragment: its tree runs only inside the tree of NLAlib.ShiftedQR.processRange. A fragment of the tree NLAlib.ShiftedQR.processRange.

NLAlib.ShiftedQR.finishRange_writes {O Q : Type} [Ops.Has ShiftedQR.EigenvalueKernelOp O] {θ : ℝ}
  {K : ShiftedQR.KernelRoutines θ} {I : Ops.Interp O Q ℝ} (hK : ShiftedQR.IsEigenvalueKernels K I)
  {τ : Ops.Tape ℝ} {m : Ops.Mem ℝ} {N lo d : ℕ} {w out : ℕ × ℕ} {B : Matrix (Fin d) (Fin d) ℂ}
  (hl : m.Live [w, out]) (hB : HoldsMatrix w B m.store) (hr : lo + d ≤ N)
  (hroom : out.2 + 2 * N ≤ m.store.len out.1) :
  Ops.Writes Ops.Mode.total I τ ShiftedQR.finishRange (Ops.Env.frame [N, lo, d] [w, out])
    (Ops.Store.inBlock out.1 (out.2 + 2 * lo) (2 * d))
    (fun m' ↦
      m'.pos = m.pos ∧ HoldsMatrix (out.1, out.2 + 2 * lo) (of fun i x ↦ K.smallEig d B i) m'.store)
    m

Full source on GitHub

Import NLAlib.Eigensolvers.ShiftedQR.Deflation.