Skip to content

Add accumulate, average, and geometric_mean reductions - #48

Open
shsahiti wants to merge 7 commits into
mainfrom
reduce-functions
Open

shsahiti wants to merge 7 commits into
mainfrom
reduce-functions

Conversation

@shsahiti

@shsahiti shsahiti commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

Split out of #9 (new-functions half), rebased onto current main.

Adds xpu/reduce.hpp (included from xpu.hpp) with accumulate, average, and geometric_mean, built on parallel_reduce_sum.

Rebase fixups:

Tested: CPU build, 11/11 ctest pass, plus a smoke check on {1,2,4,8}: sum 15, average 3.75, geometric mean 2√2. CUDA 13.3 build compiles.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant