Strange numpy.argmax behavior on object arrays in numpy 1.0.

Tom Denniston tom.denniston at alum.dartmouth.org
Sun Oct 29 16:53:37 CST 2006


I recently upgraded to numpy 1.0 from 1.0b5.   I noticed that
numpy.argmaxbehavior is very strange on object arrays.  See below:

(Pdb) numpy.__version__
'1.0'
(Pdb) numpy.argmax(numpy.array([2, 3], dtype=object))
0
(Pdb) numpy.argmax(numpy.array([2, 3], dtype=int))
1
(Pdb) numpy.argmax(numpy.array([2, 3], dtype=object), axis=0)
0


I would expect the argmax to behave the same on the dtype=int and
dtype=object examples but it doesn't.  Am I missing some subtelty or is this
just a bug?  1.0 is the most recent version, right?

--Tom
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/numpy-discussion/attachments/20061029/a1a8c7b9/attachment.html 
-------------- next part --------------
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
-------------- next part --------------
_______________________________________________
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