boostorg / histogram

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

How to access all bin counts without iterating #289

Closed teopb closed 4 years ago

teopb commented 4 years ago

I apologize because this would seem to be a simple question but I can't seem to find an answer in the documentation. After creating a histogram and filling it I would like to pass the bin counts and bin edges to another function as either arrays or vectors. Is there a way to get these values from the histogram object without iterating and copying them one by one into a new data structure? Thank you!