boostorg / histogram

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

Fix grow bug #334

Closed HDembinski closed 3 years ago

HDembinski commented 3 years ago

Closes #327

This was a bug deep in the implementation logic, not in the general logic of how to handle the various cases of growing and not growing axes and the broadcasting logic. The code assumed that two iterators point to the same array, while some outer code in some cases created to iterators that pointed to two different "arrays".