I tried to play around with the indexing of numpy and inplace addition and figured out that it is not doing what I expected
a = np.array([0,0,0])
a[[0,0,1,2]] += [1,2,3,4]
a
which gives me
array([2, 3, 4])
But I would expect element 0 to be 3 (2+1)
Any idea/reference on why this does not work as i expect ?
Or how to make that work ?