Skip to content

Accum#967

Open
dominikkiese wants to merge 31 commits intounstablefrom
ACCUM
Open

Accum#967
dominikkiese wants to merge 31 commits intounstablefrom
ACCUM

Conversation

@dominikkiese
Copy link
Copy Markdown
Contributor

Reopening of #966

@Wentzell
Copy link
Copy Markdown
Member

Thank you @dominikkiese for this improvement! I pushed some simplifications in my commit ffb12cc

Can you please look into creating a test of the callback functionality?

@dominikkiese
Copy link
Copy Markdown
Contributor Author

Commit looks good to me, using nda::map with the abs_square function makes the code much more compact! I will think about a proper test.

Thoemi09 and others added 22 commits April 22, 2026 14:07
- move functions/enums related to mean/error estimation into mean_error.hpp
- update the docs
- improve test coverage
- update docs
- improve testing
- move pdf/cdf implementation into histogram class
Co-Authored-By: Claude <noreply@anthropic.com>
Use long literals to avoid int overflow in bit shift (log_binning)
and std::accumulate (lin_binning::mpi_all_gather).

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Replace the cryptic `-max_n_bins` trick in the member initializer with
explicit branching per max_n_bins value. Makes the intent clear: 0 means
disabled with bin_capacity=0, 1 means a single unbounded bin, other
values use the provided bin_capacity.

Co-Authored-By: Claude <noreply@anthropic.com>
Extract the max_n_bins_ == 1 case as an early return instead of
wrapping the entire accumulation block in its negation. Reduces
nesting depth and clarifies the remaining logic handles the
multi-bin case.

Co-Authored-By: Claude <noreply@anthropic.com>
The tol_mean, tol_err, and eps constants were declared but never used.
The test body uses EXPECT_EQ (exact float comparison), not EXPECT_NEAR.

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
The all_tests() CMake macro only globs *.cpp files, so the previous
.hpp extension meant the StatCompatible, AccCompatible, and
StatCompatibleRange concept tests were never compiled or run.

Co-Authored-By: Claude <noreply@anthropic.com>
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.

3 participants