2 ms·
I don't think you can. He is essentially keeping a histogram: for a given i, how many times did we see it? That is not a scalar value, and reductions can only b
by scott_s 15y ago
I don't think you can. He is essentially keeping a histogram: for a given i, how many times did we see it? That is not a scalar value, and reductions can only be applied to scalars. If you think I'm wrong, please show me the code you think that works, because I spent some time thinking about it, and I'm quite curious.
- dalke 15y agoI looked as well but it seems like reduction only works for scalars and not for arrays.