Adding out to bincount

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
Report Content as Inappropriate

Adding out to bincount

Jaime Fernández del Río
There is an ongoing discussion on #9397 about adding an out= keyword argument to np.bincount().

Presently the design seems headed toward:
  • the new counts will be added to the contents of out, perhaps we need a better name than out, suggestions welcome
  • if minlength is specified and it doesn't match exactly the size of out, an error will be raised,
  • if any of the input indices is outside the bounds of the out array, an error will be raised, and
  • if the out array is not of the exact right type, i.e. np.double if weights are specified, np.intp if not, an error will be raised.
If you have an opinion about this functionality please head over there and have your say.


( O.o)
( > <) Este es Conejo. Copia a Conejo en tu firma y ayúdale en sus planes de dominación mundial.

NumPy-Discussion mailing list
[hidden email]