Is there a numpy way to retrieve all the elements in an array except the element of the provided index.
x = array([[[4, 2, 3], [2, 0, 1], [1, 3, 4]], [[2, 1, 2], [3, 2, 3], [3, 4, 2]], [[2, 4, 1], [0, 2, 2], [4, 0, 0]]])
and asking
x[not 1,:,:]
You'll get
array([[[4, 2, 3], [2, 0, 1], [1, 3, 4]], [[2, 4, 1], [0, 2, 2], [4, 0, 0]]])
thanks