This commit is contained in:
Hans Dembinski 2016-04-09 17:35:12 -04:00
parent d2306810ee
commit ae026af085

View File

@ -19,7 +19,7 @@
namespace boost { namespace boost {
namespace histogram { namespace histogram {
// holds an array of axis and computes the internal index // holds collection of axis instances and computes the internal index
class histogram_base { class histogram_base {
public: public:
typedef container::static_vector<axis_type, BOOST_HISTOGRAM_AXIS_LIMIT> axes_type; typedef container::static_vector<axis_type, BOOST_HISTOGRAM_AXIS_LIMIT> axes_type;
@ -76,8 +76,7 @@ BOOST_PP_REPEAT_FROM_TO(1, BOOST_HISTOGRAM_AXIS_LIMIT, BOOST_HISTOGRAM_BASE_CTOR
inline inline
size_type linearize(const int* idx) const { size_type linearize(const int* idx) const {
size_type stride = 1, k = 0, i = axes_.size(); size_type stride = 1, k = 0, i = axes_.size();
while (i) { while (i--) {
--i;
const int size = size_[i]; const int size = size_[i];
const int range = size + 2 * uoflow_[i]; const int range = size + 2 * uoflow_[i];
int j = idx[i]; int j = idx[i];