[Numpy-tickets] [NumPy] #764: Inconsistent behavior of float32, float64

NumPy numpy-tickets@scipy....
Tue Apr 29 08:14:20 CDT 2008


#764: Inconsistent behavior of float32, float64
------------------------+---------------------------------------------------
 Reporter:  charris     |       Owner:  somebody
     Type:  defect      |      Status:  new     
 Priority:  normal      |   Milestone:  1.1.0   
Component:  numpy.core  |     Version:  none    
 Severity:  normal      |    Keywords:          
------------------------+---------------------------------------------------
 {{{
 In [1]: float32(array([[1]]))
 Out[1]: array([[ 1.]], dtype=float32)

 In [2]: float64(array([[1]]))
 Out[2]: 1.0

 In [3]: int64(array([[1]]))
 Out[3]: array([[1]], dtype=int64)

 In [4]: int32(array([[1]]))
 Out[4]: 1
 }}}

 But also

 {{{
 In [5]: float64([[1]])
 Out[5]: array([[ 1.]])

 In [6]: int32([[1]])
 Out[6]: array([[1]])
 }}}

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


More information about the Numpy-tickets mailing list