[Numpy-discussion] take behaviour has changed

Christian Kristukat ckkart at hoc.net
Thu Sep 21 22:14:28 EDT 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