[Numpy-discussion] accumarray
Alan G Isaac
aisaac at american.edu
Wed Mar 26 20:51:36 EDT 2008
> On Wed, Mar 26, 2008 at 5:20 PM, Gabriel J.L. Beckers <beckers at orn.mpg.de> wrote:
>> Does numpy have something like Matlab's accumarray?
>> http://www.mathworks.com/access/helpdesk/help/techdoc/ref/accumarray.html
On Wed, 26 Mar 2008, Robert Kern apparently wrote:
> No.
But of course you can do things like (1d example)
vals[subs==2].sum()
Cheers,
Alan Isaac
More information about the NumPy-Discussion
mailing list