NLA-lib Explorer

NLAlib.Ops.EntryCodec.matrix_packMatrix

Library · theorem

Matrix packing and decoding preserve every entry, with no rank or size assumptions.

NLAlib.Ops.EntryCodec.matrix_packMatrix {K E : Type} [Inhabited K] (C : Ops.EntryCodec K E)
  (rows cols : ℕ) (A : ℕ → ℕ → E) :
  C.matrix rows cols (C.packMatrix rows cols A) = fun i j ↦ A ↑i ↑j

Full source on GitHub

Import NLAlib.Ops.Logic.EntryLayout.