NLA-lib Explorer

NLAlib.Ops.Store.HoldsEntries.readBlock_packFinMatrix

Library · theorem

Dense logical component reads supply the finite mathematical matrix's packed block.

NLAlib.Ops.Store.HoldsEntries.readBlock_packFinMatrix {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.packFinMatrix (of fun i j ↦ A ↑i ↑j))

Full source on GitHub

Import NLAlib.Ops.Logic.EntryLayout.