NLA-lib Explorer

NLAlib.Ops.Routine.views_of_contiguous

Library · theorem

The shapes of the operands of an interface whose operands are contiguous are blocks of their lengths.

NLAlib.Ops.Routine.views_of_contiguous {Op Tst : Type} {R : Ops.Routine Op Tst}
  (h : R.contiguous = true) (d : List ℕ) : R.views d = List.map Ops.View.block (R.lens d)

Full source on GitHub

Import NLAlib.Ops.Routine.