[NumPy-Tickets] [NumPy] #1633: Changeset 8438 breaks ldexp on 64bit/bigendian systems

NumPy Trac numpy-tickets@scipy....
Mon Oct 11 16:15:16 CDT 2010


#1633: Changeset 8438 breaks ldexp on 64bit/bigendian systems
--------------------+-------------------------------------------------------
 Reporter:  nics    |       Owner:  somebody    
     Type:  defect  |      Status:  needs_review
 Priority:  normal  |   Milestone:  1.5.1       
Component:  Other   |     Version:  1.5.0       
 Keywords:          |  
--------------------+-------------------------------------------------------

Comment(by pv):

 I'm not saying that it should be left as it is now -- I'm just saying that
 ``ldexp(.4,5)`` should also work. How it worked before #866 is indeed more
 correct, but I believe we can get both correct results and no error
 messages :)

 Generally, casts to "bigger" types are automatically done. You can see
 what via
 {{{
 >>> np.can_cast(np.single, np.double)
 True
 >>> np.can_cast(np.double, np.single)
 False
 }}}

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


More information about the NumPy-Tickets mailing list