NLA-lib Explorer

NLAlib.Ops.Store.holdsMat_of_readBlock

Library · theorem

The converse: a flat block of cols * rows cells holds the matrix of its entries.

NLAlib.Ops.Store.holdsMat_of_readBlock {K : Type} [Inhabited K] {s : Ops.Store K}
  {L : Ops.MatLayout} {ys : List K} (hL : L.rows = L.ld)
  (h : s.readBlock L.buf L.off (L.cols * L.rows) = some ys) :
  s.HoldsMat L fun i j ↦ Ops.vec ys (j * L.rows + i)

Full source on GitHub

Import NLAlib.Ops.Logic.Layout.