NLA-lib Explorer

NLAlib.Ops.Examples.push_gaussLoop_hutchCount

Library · theorem

The counts of the linked estimator: per probe, n scalar draws, a product, a dot product and an addition.

NLAlib.Ops.Examples.push_gaussLoop_hutchCount {Tst : Type} (N n : ℕ) :
  (Ops.Count.push Ops.Rand.gaussLoop.cost) (Ops.Examples.hutchCount N n) =
    N •
      (n • Ops.Count.one Ops.ROp.draw [] +
        (Ops.Count.one (Ops.ROp.operator Ops.OperatorOp.matvec) [n, n] +
          (Ops.Count.one Ops.ROp.dot [n] + Ops.Count.one Ops.ROp.add [])))

Full source on GitHub

Import NLAlib.Ops.Examples.HutchLinked.