I have a numpy array A such that
A.shape[axis] = n+1.
Now I want to construct two slices B and C of A by selecting the indices 0, .., n-1 and 1, ..., n respectively along the axis axis. Thus
B.shape[axis] = C.shape[axis] = n
and B and C have the same size as A along the other axes. There must be no copying of data.
One-liners :