arr : array-like of data with ndim >= n
ornt : (n,2) orientation array
orientation transform. ornt[N,1]` is flip of axis N of the
array implied by `shape`, where 1 means no flip and -1 means
flip. For example, if ``N==0 and ornt[0,1] == -1, and
there’s an array arr of shape shape, the flip would
correspond to the effect of np.flipud(arr). ornt[:,0] is
the transpose that needs to be done to the implied array, as in
arr.transpose(ornt[:,0])
|