NLA-lib Explorer

NLAlib.Ops.Store.HoldsEntries.readBlock_entry

Library · theorem

One matrix entry is an ordinary block of its component words.

NLAlib.Ops.Store.HoldsEntries.readBlock_entry {K E : Type} {s : Ops.Store K}
  {C : Ops.EntryCodec K E} {L : Ops.MatLayout} {A : ℕ → ℕ → E} (h : s.HoldsEntries C L A) {i j : ℕ}
  (hi : i < L.rows) (hj : j < L.cols) :
  s.readBlock L.buf (L.off + C.width * (j * L.ld + i)) C.width = some (List.ofFn (C.words (A i j)))

Full source on GitHub

Import NLAlib.Ops.Logic.EntryLayout.