NLA-lib Explorer

NLAlib.Ops.Store.readBlock_scalar_matrix_of_columns

Library · theorem

Actual scalar column reads assemble into the packed finite matrix, including empty row or column types. This is the inverse storage direction of the column reader.

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

Full source on GitHub

Import NLAlib.Ops.Logic.EntryColumn.