NLA-lib Explorer

NLAlib.ShiftedQR.getElem?_flatMap_pair

Library · theorem

The entries 2j and 2j + 1 of the pairs of a list of complex numbers.

NLAlib.ShiftedQR.getElem?_flatMap_pair (zs : List ℂ) {j : ℕ} (hj : j < zs.length) :
  (List.flatMap (fun z ↦ [z.re, z.im]) zs)[2 * j]? = some zs[j].re ∧
    (List.flatMap (fun z ↦ [z.re, z.im]) zs)[2 * j + 1]? = some zs[j].im

Full source on GitHub

Import NLAlib.Eigensolvers.ShiftedQR.PairBlocks.