NLA-lib Explorer

NLAlib.ShiftedQR.HoldsVector.update

Library · theorem

A write to one complete stored pair updates the corresponding vector coordinate.

NLAlib.ShiftedQR.HoldsVector.update {n : ℕ} {a : ℕ × ℕ} {v : Fin n → ℂ} {s s' : Ops.Store ℝ}
  (h : ShiftedQR.HoldsVector a v s) (i : Fin n) (z : ℂ)
  (hfr : Ops.Store.EqOff (Ops.Store.inBlock a.1 (a.2 + 2 * ↑i) 2) s s')
  (hr : s'.get a.1 (a.2 + 2 * ↑i) = some z.re) (hi : s'.get a.1 (a.2 + 2 * ↑i + 1) = some z.im) :
  ShiftedQR.HoldsVector a (Function.update v i z) s'

Full source on GitHub

Import NLAlib.Eigensolvers.ShiftedQR.RowSolveStorage.