While we cannot avoid round-off error in the index and value methods of the regular axis, we want these two to be exact inverses of each other. In other words, this should succeed for all values of nbin, start, stop.
auto a = regular(nbin, start, stop);
for (int i =0; i < nbin; ++i)
assert(a.index(a.value(i)) == i);
While we cannot avoid round-off error in the
index
andvalue
methods of theregular
axis, we want these two to be exact inverses of each other. In other words, this should succeed for all values ofnbin
,start
,stop
.This needs to verified with fuzzy testing.