[Numpy-discussion] Re: Passing output array to bincount

2022-10-22 Thread Jerome Kieffer
On Thu, 20 Oct 2022 23:26:37 - ntess...@pm.me wrote: > As far as I can see, there is no equivalent numpy functionality. In fact, as > far as I'm aware, there isn't any fast alternative outside of > C/Cython/numba/.. We have cummulative histograms in silx ... and found it useful. Maybe it wo

[Numpy-discussion] Re: Passing output array to bincount

2022-10-21 Thread Nicolas Tessore
Hi, thanks for your reply. Let me try and answer your points one by one. > * `np.add.at` should be able to do what you want (but of course is very > slow right now, and maybe hard to get as fast as bincount even if > improved). It is indeed far too slow to be useful for my particular applicat

[Numpy-discussion] Re: Passing output array to bincount

2022-10-21 Thread Sebastian Berg
On Thu, 2022-10-20 at 23:26 +, ntess...@pm.me wrote: > Hello, > Hi, I don't have a strong opinion yet it does seem potentially useful, but I think there would be some details to hash out in the proposal. Some thoughts: * `np.add.at` should be able to do what you want (but of course is very