NLA-lib Explorer

NLAlib.Ops.stmtCost_binaryMap

Library · theorem

A binary map performs one declared scalar call per output word.

NLAlib.Ops.stmtCost_binaryMap {Op Tst : Type} (o : Op) (n x y z : ℕ) :
  Ops.stmtCost (Ops.binaryMap o) [n, x, y, z] = n • Ops.Count.one o []

Full source on GitHub

Import NLAlib.Ops.Blas.Map.