NLA-lib Explorer

NLAlib.ShiftedQR.take_flatMap_pair

Library · theorem

Taking the pairs of the first h complex numbers.

NLAlib.ShiftedQR.take_flatMap_pair (l : List ℂ) (h : ℕ) :
  List.take (2 * h) (List.flatMap (fun z ↦ [z.re, z.im]) l) =
    List.flatMap (fun z ↦ [z.re, z.im]) (List.take h l)

Full source on GitHub

Import NLAlib.Eigensolvers.ShiftedQR.PairBlocks.