NLAlib.ShiftedQR.readBlock_flatMap_pair_of_get
Library · theorem
A block of pairs read from its cells.
NLAlib.ShiftedQR.readBlock_flatMap_pair_of_get {s : Ops.Store ℝ} {b o : ℕ} {zs : List ℂ}
(h :
∀ (j : ℕ) (hj : j < zs.length),
s.get b (o + 2 * j) = some zs[j].re ∧ s.get b (o + 2 * j + 1) = some zs[j].im) :
s.readBlock b o (2 * zs.length) = some (List.flatMap (fun z ↦ [z.re, z.im]) zs)Import NLAlib.Eigensolvers.ShiftedQR.PairBlocks.