NLA-lib Explorer

NLAlib.Ops.Blas.sumSeqCost

Library · def

The cost of sequential summation: a literal, a copy if n ≥ 1, and n - 1 additions.

NLAlib.Ops.Blas.sumSeqCost {Op Tst : Type} [Ops.Has Ops.ScalarOp Op] [Ops.Has Ops.Blas1Op Op]
  (o : Op) (d : List ℕ) : Ops.Count Op Tst

Full source on GitHub

Import NLAlib.Ops.Profiles.Blas.