I want to do arithmetic operation on dynamically specified axis and index and update values at the original array for example:
import numpy as np
array = np.array([[[1, 2],
[3, 4],
[5, 6]],
[[7, 8],
[9, 10],
[11, 12]]])
axis = 1
indices = [0,2]
for example adding 1 to specified axis and indices, and get the new array as:
array = [[[2, 3],
[3, 4],
[6, 7]],
[[8, 9],
[9, 10],
[12, 13]]])