NLA-lib Explorer

NLAlib.Ops.Store.readBlock_scalar_matrix_column

Library · theorem

A packed scalar matrix supplies each actual column as an ordinary vector block.

NLAlib.Ops.Store.readBlock_scalar_matrix_column {K : Type} [Inhabited K] {s : Ops.Store K}
  {b off rows cols : ℕ} {A : Matrix (Fin rows) (Fin cols) K}
  (h : s.readBlock b off (cols * rows) = some ((Ops.EntryCodec.scalar K).packFinMatrix A))
  (j : Fin cols) : s.readBlock b (off + ↑j * rows) rows = some (List.ofFn (A.col j))

Full source on GitHub

Import NLAlib.Ops.Logic.EntryColumn.