[NumPy-Tickets] [NumPy] #2170: Wrong result when calculating the mean masking nan values on a 64 bit system

NumPy Trac numpy-tickets@scipy....
Wed Jun 20 08:03:12 CDT 2012


#2170: Wrong result when calculating the mean masking nan values on a 64 bit
system
---------------------+------------------------------------------------------
 Reporter:  knopfra  |       Owner:  somebody   
     Type:  defect   |      Status:  new        
 Priority:  high     |   Milestone:  Unscheduled
Component:  Other    |     Version:  1.6.1      
 Keywords:           |  
---------------------+------------------------------------------------------

Comment(by knopfra):

 An additional comment that reduces the priority of the issue reported:
  * the array provided contains elements of type float32
  * as reported by the numpy.mean documentation, the mean is computed using
 the same precision the input has and this explains the incorrect mean
 value in the 64 bit system
  * converting the array elements to type float64, the mean value obtained
 is correct
  * in the 32 bit system, the python version used is " Python 2.7.2 -- EPD
 7.1-2 (32-bit)" (Enthought Python Distribution)

 The different results obtained by the 64 bit and 32 bit versions is still
 not clear

-- 
Ticket URL: <http://projects.scipy.org/numpy/ticket/2170#comment:1>
NumPy <http://projects.scipy.org/numpy>
My example project


More information about the NumPy-Tickets mailing list