[Numpy-tickets] [NumPy] #590: arr.max() does not always return maximum

NumPy numpy-tickets@scipy....
Tue Oct 9 20:19:10 CDT 2007


#590: arr.max() does not always return maximum
------------------------+---------------------------------------------------
 Reporter:  stefan      |        Owner:  somebody     
     Type:  defect      |       Status:  new          
 Priority:  high        |    Milestone:  1.0.4 Release
Component:  numpy.core  |      Version:  devel        
 Severity:  major       |   Resolution:               
 Keywords:  maximum     |  
------------------------+---------------------------------------------------
Old description:

> (See attachment for data)
>
> {{{
> z = N.fromfile('z.dat',sep=' ')
> print q.max(), q[q > q.max()]
> }}}
>
> {{{
> 0.149478116585 [ 0.15997875  0.17071139  0.16408428  0.17560516]
> }}}

New description:

 (See attachment for data)

 {{{
 import numpy as N
 z = N.fromfile('z.dat',sep=' ')
 print z.max(), z[z > z.max()]
 }}}

 {{{
 0.149478116585 [ 0.15997875  0.17071139  0.16408428  0.17560516]
 }}}

-- 
Ticket URL: <http://scipy.org/scipy/numpy/ticket/590#comment:1>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.


More information about the Numpy-tickets mailing list