NLA-lib Explorer

NLAlib.Ops.Examples.WorkedInstances.Matvec.calls

Library · theorem

The tree contains, for each row, one literal zero and one multiplication and one addition for each column, and no other operation.

NLAlib.Ops.Examples.WorkedInstances.Matvec.calls (d : Fin 2 → ℕ) :
  Ops.Count.original (Ops.staticCost Ops.Examples.WorkedInstances.Matvec.program d) =
    d 0 •
      (Ops.Count.one (Ops.ScalarOp.lit 0) [] +
        d 1 • (Ops.Count.one Ops.ScalarOp.mul [] + Ops.Count.one Ops.ScalarOp.add []))

Full source on GitHub

Import NLAlib.Ops.Examples.WorkedInstances.Matvec.