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

_______________________________________________
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to