NLAlib.Ops.Examples.push_pairwise_gemmCount
Library · theorem
The scalar counts of gemm under pairwise summation: per entry, n multiplications, n - 1 additions and n copies.
NLAlib.Ops.Examples.push_pairwise_gemmCount {Op Tst : Type} [Ops.Has Ops.Blas1Op Op]
[Ops.Has Ops.ScalarOp Op] [Ops.Apart Ops.Blas1Op Ops.ScalarOp Op] (k m n p : ℕ)
(hk : Nat.clog 2 n < k) :
(Ops.Count.push (Ops.Blas.pairwise k).cost) (Ops.Examples.gemmCount m n p) =
(m * p) • (n • Ops.Blas.sc Ops.ScalarOp.mul + Ops.Blas.pairCount n)Import NLAlib.Ops.Examples.Gemm.