Re: [Numpy-discussion] Generalized flip function

2016-02-26 Thread Joseph Fox-Rabinovitz
If nothing else, this is a nice complement to the generalized `stack` function. -Joe On Fri, Feb 26, 2016 at 11:32 AM, Eren Sezener wrote: > Hi, > > In PR #7346 we add a flip function that generalizes fliplr and flipud for > arbitrary axes. > > flipud and fliplr reverse the elements of an ar

[Numpy-discussion] Generalized flip function

2016-02-26 Thread Eren Sezener
Hi, In PR #7346 we add a flip function that generalizes fliplr and flipud for arbitrary axes. flipud and fliplr reverse the elements of an array along axis=0 and axis=1 respectively. The new flip function reverses the elements of an array along any given axis. In case flip is called with axis=0 o