[NumPy-Tickets] [NumPy] #1931: np.left_shift and np.right_shift fail on np.uint64 scalar types

NumPy Trac numpy-tickets@scipy....
Fri Jul 27 15:58:46 CDT 2012


#1931: np.left_shift and np.right_shift fail on np.uint64 scalar types
------------------------+---------------------------------------------------
 Reporter:  tlatorre    |       Owner:  somebody   
     Type:  defect      |      Status:  new        
 Priority:  high        |   Milestone:  Unscheduled
Component:  numpy.core  |     Version:  1.6.0      
 Keywords:              |  
------------------------+---------------------------------------------------

Comment(by parejkoj):

 I was able to code around this with the following lambda:

 {{{
 lshift = lambda x,s: np.uint64(x)*np.uint64(2**s)
 }}}

 This works, but is not ideal. Getting this fixed in numpy would be very
 useful.

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


More information about the NumPy-Tickets mailing list