[NumPy-Tickets] [NumPy] #1595: Add 'minlength' keyword to bincount for minimum size of output array.
NumPy Trac
numpy-tickets@scipy....
Fri Aug 27 18:54:59 CDT 2010
#1595: Add 'minlength' keyword to bincount for minimum size of output array.
--------------------------------+-------------------------------------------
Reporter: david.warde-farley | Owner: somebody
Type: enhancement | Status: new
Priority: normal | Milestone: 2.0.0
Component: numpy.lib | Version: devel
Keywords: |
--------------------------------+-------------------------------------------
The patch adds a 'minlength' keyword argument to bincount, allowing users
to specify a minimum size for the output array, e.g.
{{{
>>> import numpy as np
>>> np.bincount(np.random.random_integers(0,1,size=40),minlength=3)
array([23, 17, 0])
}}}
The patch includes docs for the new behaviour as well as several tests.
--
Ticket URL: <http://projects.scipy.org/numpy/ticket/1595>
NumPy <http://projects.scipy.org/numpy>
My example project
More information about the NumPy-Tickets
mailing list