NLA-lib Explorer

NLAlib.Ops.EntryCodec.length_packFinMatrix

Library · theorem

The finite packing has exactly the declared number of words.

NLAlib.Ops.EntryCodec.length_packFinMatrix {K E : Type} (C : Ops.EntryCodec K E) {rows cols : ℕ}
  (A : Matrix (Fin rows) (Fin cols) E) : (C.packFinMatrix A).length = cols * rows * C.width

Full source on GitHub

Import NLAlib.Ops.Logic.EntryLayout.