NLA-lib Explorer

NLAlib.Ops.EntryCodec.vec_packFinMatrix

Library · theorem

Every actual matrix entry supplies its own component words in finite packing.

NLAlib.Ops.EntryCodec.vec_packFinMatrix {K E : Type} [Inhabited K] (C : Ops.EntryCodec K E)
  {rows cols : ℕ} (A : Matrix (Fin rows) (Fin cols) E) (i : Fin rows) (j : Fin cols)
  (z : Fin C.width) :
  Ops.vec (C.packFinMatrix A) ((↑j * rows + ↑i) * C.width + ↑z) = C.words (A i j) z

Full source on GitHub

Import NLAlib.Ops.Logic.EntryLayout.