NLA-lib Explorer

NLAlib.Ops.EntryCodec.packFinMatrix_matrix

Library · theorem

Decoding and repacking any correctly sized raw word block preserves every word. The codec is an equivalence on all component vectors, so no representability or padding premise is hidden in this inverse direction.

NLAlib.Ops.EntryCodec.packFinMatrix_matrix {K E : Type} [Inhabited K] (C : Ops.EntryCodec K E)
  (rows cols : ℕ) (xs : List K) (hlen : xs.length = cols * rows * C.width) :
  C.packFinMatrix (C.matrix rows cols xs) = xs

Full source on GitHub

Import NLAlib.Ops.Logic.EntryLayout.