[Numpy-discussion] accumarray

Alan G Isaac aisaac@american....
Wed Mar 26 19:51:36 CDT 2008


> On Wed, Mar 26, 2008 at 5:20 PM, Gabriel J.L. Beckers  <beckers@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