Is there a MATLAB accumarray equivalent in numpy?

后端 未结 7 1726
时光说笑
时光说笑 2021-01-01 18:06

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

7条回答
  •  天涯浪人
    2021-01-01 18:49

    I've written an accumarray implementation with scipy.weave and uploaded it at github: https://github.com/ml31415/numpy-groupies

提交回复
热议问题