NLAlib.Ops.Examples.Integrator.myLinkedProgram_calls
Library · theorem
The calls of the linked tree: N products at [n, n], and N n scalar multiplications and N n scalar additions, and no other operation.
NLAlib.Ops.Examples.Integrator.myLinkedProgram_calls (d : Fin 2 → ℕ) :
Ops.Count.original (Ops.staticCost Ops.Examples.Integrator.myLinkedProgram d) =
d 1 •
(Ops.Count.one Ops.Examples.Integrator.MyLowOperation.matvec [d 0, d 0] +
d 0 •
(Ops.Count.one (Ops.Examples.Integrator.MyLowOperation.scalar Ops.ScalarOp.mul) [] +
Ops.Count.one (Ops.Examples.Integrator.MyLowOperation.scalar Ops.ScalarOp.add) []))Import NLAlib.Ops.Examples.IntegratorLink.