NLA-lib Explorer

NLAlib.Ops.Store.HoldsEntries.readBlock

Library · theorem

Dense component reads are exactly a read of the packed operand block.

NLAlib.Ops.Store.HoldsEntries.readBlock {K E : Type} {s : Ops.Store K} {C : Ops.EntryCodec K E}
  {L : Ops.MatLayout} {A : ℕ → ℕ → E} (h : s.HoldsEntries C L A) (hL : L.rows = L.ld) :
  s.readBlock L.buf L.off (L.cols * L.rows * C.width) = some (C.packMatrix L.rows L.cols A)

Full source on GitHub

Import NLAlib.Ops.Logic.EntryLayout.