29 Sep
2010
29 Sep
'10
noon
Wed, 29 Sep 2010 11:15:08 -0500, Robert Kern wrote: [clip: inplace addition with duplicates]
Use numpy.bincount() instead.
It might be worthwhile to add a separate helper function for this purpose. Bincount makes a copy that could be avoided, and it is difficult to find if you don't know about this trick. -- Pauli Virtanen