NLA-lib Explorer

NLAlib.Ops.Examples.Integrator.myProgram_calls

Library · theorem

The calls of the tree: N products at [n, n] and N updates at [n], and no other operation. Structural instructions are set aside by Count.original.

NLAlib.Ops.Examples.Integrator.myProgram_calls (d : Fin 2 → ℕ) :
  Ops.Count.original (Ops.staticCost Ops.Examples.Integrator.myProgram d) =
    d 1 •
      (Ops.Count.one Ops.Examples.Integrator.MyOperation.matvec [d 0, d 0] +
        Ops.Count.one Ops.Examples.Integrator.MyOperation.axpy [d 0])

Full source on GitHub

Import NLAlib.Ops.Examples.Integrator.