NLA-lib Explorer

NLAlib.Ops.Blas.sumPairwise_iter_cost_kept

Library · theorem

The iterate of pairwise summation keeps the cost of the operations it keeps.

NLAlib.Ops.Blas.sumPairwise_iter_cost_kept {Op Tst : Type} [Ops.Has Ops.ScalarOp Op]
  [Ops.Has Ops.Blas1Op Op] (k : ℕ) {o : Op} (h : Ops.Has.proj o ≠ some Ops.Blas1Op.sum)
  (d : List ℕ) : (Ops.Blas.sumPairwise.iter k).cost o d = Ops.Count.one o d

Full source on GitHub

Import NLAlib.Ops.Profiles.BlasCert.