NLA-lib Explorer

NLAlib.Ops.RCLikeScalar.stmtCost_scal

Library · theorem

Scalar division is emitted once per stored vector entry.

NLAlib.Ops.RCLikeScalar.stmtCost_scal {Op Tst : Type} [Ops.Has Ops.ScalarOp Op] (n a x out : ℕ) :
  Ops.stmtCost Ops.RCLikeScalar.scal [n, a, x, out] =
    n • Ops.Count.one (Ops.Has.inj Ops.ScalarOp.div) []

Full source on GitHub

Import NLAlib.Ops.Profiles.RCLikeScalar.