NLA-lib Explorer

NLAlib.Ops.Examples.WorkedInstances.Strided.work

Library · theorem

The tree contains exactly 16 n + 11 instructions, each of weight one, whatever the increment.

NLAlib.Ops.Examples.WorkedInstances.Strided.work (d : Fin 2 → ℕ) :
  Ops.Examples.WorkedInstances.Strided.resources.work
      (Ops.staticCost Ops.Examples.WorkedInstances.Strided.program d) =
    16 * d 0 + 11

Full source on GitHub

Import NLAlib.Ops.Examples.WorkedInstances.Strided.