boostorg / boostorg/histogram

Add pick command for reduce

Open
#275 4 comments 0 reactions 0 assignees View on GitHub
help wanted
Dominant language
C++
Stars
334
Forks
76
PR merge metrics
No merged PRs in 30d

Description

Copied from #267:

scikit-hep/boost-histogram#296
suggests that one should be able to pick individual bin indices from a category axis. The suggested command is `pick(index1, index2, ...)`, as suggested by @henryiii

The idea is good, but the implementation cost is not negligible. `pick` would only work for unordered axes like category. A new kind of reduce constructor must be defined and a corresponding reduce implementation must be written.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.