boostorg / histogram

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

Replace optional_index with normal index again #280

Open HDembinski opened 4 years ago

HDembinski commented 4 years ago

Instead of maintaining a special index state for "out-of-range" during linearization, just add the size of the whole histogram whenever any axis index is out of range. This assures that the final index is past the end, which can be easily detected. This should further reduce the instructions.