NLA-lib Explorer

NLAlib.Ops.matrixQRFn_fn

Library · theorem

A QR call packs both factors of the same routine on its actual input block.

NLAlib.Ops.matrixQRFn_fn {K E : Type} [Inhabited K] (C : Ops.EntryCodec K E)
  (qr : {m n : ℕ} → Matrix (Fin m) (Fin n) E → Matrix (Fin m) (Fin m) E × Matrix (Fin m) (Fin n) E)
  (m n : ℕ) (as w : List K) :
  (Ops.matrixQRFn C fun {m n} ↦ qr).fn [m, n] w [as] =
    some [C.packFinMatrix (qr (C.matrix m n as)).1, C.packFinMatrix (qr (C.matrix m n as)).2]

Full source on GitHub

Import NLAlib.Ops.Catalog.Matrix.