NLA-lib Explorer

NLAlib.Ops.sumPairwise

Library · def

Pairwise summation, recursive: the tree calls sum. Index variables: n, the offsets of x, z, then the variables of the branches; buffer variables: x, z, then two scratch cells.

NLAlib.Ops.sumPairwise {Op Tst : Type} [Ops.Has Ops.ScalarOp Op] [Ops.Has Ops.Blas1Op Op] :
  Ops.Stmt Op Tst

Full source on GitHub

Import NLAlib.Ops.Blas.Sum.