I\'m looking for a fast solution to MATLAB\'s accumarray in numpy. The accumarray accumulates the elements of an array which belong to the same index. An exampl
accumarray
Use np.bincount with the weights optional argument. In your example you would do:
weights
np.bincount(accmap, weights=a)