[Numpy-discussion] take behaviour has changed

Christian Kristukat ckkart at hoc.net
Thu Sep 21 21:14:28 CDT 2006


Hi,
from 1.0b1 to 1.0rc1 the default behaviour of take seems to have changed when
omitting the axis argument:

In [13]: a = reshape(arange(12),(3,4))

In [14]: take(a,[2,3])
Out[14]: array([2, 3])

In [15]: take(a,[2,3],1)
Out[15]:
array([[ 2,  3],
       [ 6,  7],
       [10, 11]])

Is this intended?

Christian






More information about the Numpy-discussion mailing list