NLAlib.Ops.RCLikeScalar.stmtCost_dot
Library · theorem
A Hermitian dot emits one zero literal and one conjugation, multiplication and addition per entry. Structural instructions are counted separately by canonical instrumentation.
NLAlib.Ops.RCLikeScalar.stmtCost_dot {Op Tst : Type} [Ops.Has Ops.ScalarOp Op]
[Ops.Has Ops.StarOp Op] (n x y out : ℕ) :
Ops.stmtCost Ops.RCLikeScalar.dot [n, x, y, out] =
Ops.Count.one (Ops.Has.inj (Ops.ScalarOp.lit 0)) [] +
n •
(Ops.Count.one (Ops.Has.inj Ops.StarOp.conj) [] +
Ops.Count.one (Ops.Has.inj Ops.ScalarOp.mul) [] +
Ops.Count.one (Ops.Has.inj Ops.ScalarOp.add) [])Import NLAlib.Ops.Profiles.RCLikeScalar.