NLA-lib Explorer

NLAlib.ShiftedQR.readBlock_pair_of_flatMap

Library · theorem

The pair of entry j of a list of complex numbers stored as interleaved pairs.

NLAlib.ShiftedQR.readBlock_pair_of_flatMap {s : Ops.Store ℝ} {b : ℕ × ℕ} {zs : List ℂ}
  (h : s.readBlock b.1 b.2 (2 * zs.length) = some (List.flatMap (fun z ↦ [z.re, z.im]) zs)) {j : ℕ}
  (hj : j < zs.length) : s.readBlock b.1 (b.2 + 2 * j) 2 = some [(zs.getD j 0).re, (zs.getD j 0).im]

Full source on GitHub

Import NLAlib.Eigensolvers.ShiftedQR.RoundedRowPoly.