NLA-lib Explorer

NLAlib.Ops.Store.holdsEntries_of_readBlock_columns

Library · theorem

A collection of packed column reads supplies the mathematical matrix entries. No padding words between columns need to be initialized.

NLAlib.Ops.Store.holdsEntries_of_readBlock_columns {K E : Type} [Inhabited K] {s : Ops.Store K}
  {C : Ops.EntryCodec K E} {L : Ops.MatLayout} {A : ℕ → ℕ → E}
  (h :
    ∀ 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)) :
  s.HoldsEntries C L A

Full source on GitHub

Import NLAlib.Ops.Logic.EntryColumn.