boostorg / histogram

Fast multi-dimensional generalized histogram with convenient interface for C++14
Boost Software License 1.0
313 stars 74 forks source link

fix indexed crash #356

Closed HDembinski closed 1 year ago

HDembinski commented 1 year ago

indexed logic was faulty if any axis except the first had a physical size (inner bins + flow bins) of 0. Closes #353

Investigating this revealed another issue: the logic was also faulty if the histogram contained axes that had a logical size of 0 (only flow bins but no inner bins). This patch fixes both issues.