Vectorize a conditional sum of elements in an array of indices and another array of elements to be added

前端 未结 0 1768
一整个雨季
一整个雨季 2021-01-19 04:28

I have 2 numpy array which might look like this: n = np.array([[1, 2, 2], [4, 5, 5], [7, 7, 7]]) and F = np.array([[5, 6, 7], [8, 9, 1], [2, 3, 4]])

相关标签:
回答
  • 消灭零回复
提交回复
热议问题