Hans Dembinski
Hans Dembinski
It is not the iterator concept. ```c++ #include #include template void test_iter(I) {} int main() { using namespace boost::histogram; auto hist = make_histogram(axis::integer(1, 2)); auto ind = indexed(hist); // this...
Using indexed in ranges is currently not supported, it is untested. I will try to support this, since the syntax is nice and it makes sense to use an indexed...
In Python, I think the conversion should happen, as this is the least surpring thing. The unlimited storage also converts in this case.
If I understand you correctly, you want to store not only one sum of weights for each histogram cell, but several sums of weights. It is possible to achieve this...
I will think about adding an example to the user guide about this. I don't have many examples yet for custom accumulators that use samples.
Thinking more about it, it is probably even more straight-forward to support this. The default weight type in boost::histogram is double, but this can be replaced by another multi-weight type....
@douglasdavis How many weights do you need to keep track of simultaneously? 2, 4, 16, ...?
That is also what I understood, but with the machinery we have right now, you can only have one weight.
You need a special storage for that case, `bh.storage.weight` doesn't work. In each histogram cell, you need to keep track of three weight sums instead of one. The cell size...
It is a good idea to support this, but this is something for later, not for the first release.