NLAlib.Ops.EntryCodec.take_packFinMatrix
Library · theorem
Taking the first columns of packed storage agrees with packing the corresponding Mathlib column submatrix. No padding entries are introduced.
NLAlib.Ops.EntryCodec.take_packFinMatrix {K E : Type} (C : Ops.EntryCodec K E) {rows cols count : ℕ}
(A : Matrix (Fin rows) (Fin cols) E) (hc : count ≤ cols) :
List.take (count * rows * C.width) (C.packFinMatrix A) =
C.packFinMatrix (A.submatrix id (Fin.castLE hc))Import NLAlib.Ops.Logic.EntryLayout.