Re: [Numpy-discussion] confused with apply_along_axis()

2007-02-07 Thread Joris De Ridder
On Wednesday 07 February 2007 15:22, Stefan van der Walt wrote: >On Wed, Feb 07, 2007 at 03:11:53PM +0100, Joris De Ridder wrote: >> I expected as output >> array([[ 1., 4.], >>[ 7., 10.]]) > >That is the answer I get with numpy 1.0.2.dev3537 under Python 2.4. Python 2.5 + numpy 1.0.

Re: [Numpy-discussion] confused with apply_along_axis()

2007-02-07 Thread Stefan van der Walt
Hi Joris On Wed, Feb 07, 2007 at 03:11:53PM +0100, Joris De Ridder wrote: > I expected as output > array([[ 1., 4.], >[ 7., 10.]]) That is the answer I get with numpy 1.0.2.dev3537 under Python 2.4. Cheers Stéfan ___ Numpy-discussion mailin

[Numpy-discussion] confused with apply_along_axis()

2007-02-07 Thread Joris De Ridder
Hi, I'm confused by the output of apply_along_axis() in the following very simple example: In [93]: a = arange(12.).reshape(2,2,3) In [95]: a Out[95]: array([[[ 0., 1., 2.], [ 3., 4., 5.]], [[ 6., 7., 8.], [ 9., 10., 11.]]]) In [96]: def myfunc(b): ...