[NumPy-Tickets] [NumPy] #1931: np.left_shift and np.right_shift fail on np.uint64 scalar types
NumPy Trac
numpy-tickets@scipy....
Wed Oct 24 08:12:05 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 cacois):
Replying to [comment:2 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.
I'm using something similar to get around this. A real fix would be good,
and this should be an easy issue to put into a unit test suite to make
sure it doesn't pop up again.
--
Ticket URL: <http://projects.scipy.org/numpy/ticket/1931#comment:3>
NumPy <http://projects.scipy.org/numpy>
My example project
More information about the NumPy-Tickets
mailing list