NLA-lib Explorer

NLAlib.Ops.Store.HoldsEntries.readBlock_column

Library · theorem

One matrix column is an ordinary packed vector, with the matrix's leading dimension.

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

Full source on GitHub

Import NLAlib.Ops.Logic.EntryColumn.