NLA-lib Explorer

NLAlib.Ops.Examples.Strided.readView_row

Library · theorem

A row of a matrix that is read as one block is read as a view of it.

NLAlib.Ops.Examples.Strided.readView_row {K : Type} [Inhabited K] {st : Ops.Store K} {b off p n : ℕ}
  {As : List K} (h : st.readBlock b off (p * n) = some As) {t : ℕ} (ht : t < p) :
  st.readView b (off + t) { len := 1, runs := some (n, p) } =
    some (Ops.Examples.Strided.row As p n t)

Full source on GitHub

Import NLAlib.Ops.Examples.Strided.