NLAlib.Ops.Examples.push_mmCost_mm
Library · theorem
The scalar counts of the linked sq2: 2 n² literals and 2 n³ multiplications and additions.
NLAlib.Ops.Examples.push_mmCost_mm (n : ℕ) :
(Ops.Count.push Ops.Examples.mmCost) (2 • Ops.Count.one Ops.Examples.MOp.mm [n, n, n]) =
(2 * (n * n)) • Ops.Count.one (Ops.ScalarOp.lit 0) [] +
(2 * (n * n * n)) • (Ops.Count.one Ops.ScalarOp.mul [] + Ops.Count.one Ops.ScalarOp.add [])Import NLAlib.Ops.Examples.MatMul.