Re: [Numpy-discussion] flip array on axis

2013-07-12 Thread Andreas Hilboll
Am 10.07.2013 17:06, schrieb Matthew Brett: > Hi, > > On Wed, Jul 10, 2013 at 11:02 AM, Andreas Hilboll wrote: >> Hi, >> >> there are np.flipud and np.fliplr methods to flip 2d arrays on the first >> and second dimension, respectively. What can I do to flip an array on an >> axis which I don't kn

Re: [Numpy-discussion] flip array on axis

2013-07-11 Thread Nathaniel Smith
On Wed, Jul 10, 2013 at 5:03 PM, Andreas Hilboll wrote: > On 10.07.2013 17:06, Matthew Brett wrote: >> Hi, >> >> On Wed, Jul 10, 2013 at 11:02 AM, Andreas Hilboll wrote: >>> Hi, >>> >>> there are np.flipud and np.fliplr methods to flip 2d arrays on the first >>> and second dimension, respectively

Re: [Numpy-discussion] flip array on axis

2013-07-10 Thread Warren Weckesser
On Wed, Jul 10, 2013 at 12:03 PM, Andreas Hilboll wrote: > On 10.07.2013 17:06, Matthew Brett wrote: > > Hi, > > > > On Wed, Jul 10, 2013 at 11:02 AM, Andreas Hilboll > wrote: > >> Hi, > >> > >> there are np.flipud and np.fliplr methods to flip 2d arrays on the first > >> and second dimension, r

Re: [Numpy-discussion] flip array on axis

2013-07-10 Thread Andreas Hilboll
On 10.07.2013 17:06, Matthew Brett wrote: > Hi, > > On Wed, Jul 10, 2013 at 11:02 AM, Andreas Hilboll wrote: >> Hi, >> >> there are np.flipud and np.fliplr methods to flip 2d arrays on the first >> and second dimension, respectively. What can I do to flip an array on an >> axis which I don't know

Re: [Numpy-discussion] flip array on axis

2013-07-10 Thread Matthew Brett
Hi, On Wed, Jul 10, 2013 at 11:02 AM, Andreas Hilboll wrote: > Hi, > > there are np.flipud and np.fliplr methods to flip 2d arrays on the first > and second dimension, respectively. What can I do to flip an array on an > axis which I don't know before runtime? I'd really like to see a > np.flip(a

[Numpy-discussion] flip array on axis

2013-07-10 Thread Andreas Hilboll
Hi, there are np.flipud and np.fliplr methods to flip 2d arrays on the first and second dimension, respectively. What can I do to flip an array on an axis which I don't know before runtime? I'd really like to see a np.flip(arr, axis) method which lets me specify which axis to flip on. Any ideas?