[Numpy-discussion] take behaviour has changed

Bill Baxter wbaxter at gmail.com
Thu Sep 21 21:37:21 CDT 2006


Yep, check the release notes:
http://www.scipy.org/ReleaseNotes/NumPy_1.0
search for 'take' on that page to find out what others have changed as well.
--bb

On 9/22/06, Christian Kristukat <ckkart at hoc.net> wrote:
> 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
>
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Numpy-discussion mailing list
> Numpy-discussion at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/numpy-discussion
>




More information about the Numpy-discussion mailing list