[Numpy-discussion] problem w 32bit binomial?
Thu Feb 25 19:18:26 CST 2010
On 25-Feb-10, at 5:59 PM, James Bergstra wrote:
> In case this hasn't been solved in more recent numpy...
> I've tried the following lines on two installations of numpy 1.3
> with python 2.6
> numpy.random.binomial(n=numpy.asarray([2,3,4], dtype='int64'),
> p=numpy.asarray([.1, .2, .3], dtype='float64'))
> A 64bit computer gives an output of array length 3.
> A 32bit computer gives an error:
> TypeError: array cannot be safely cast to required type
> If I change the int64 cast to an int32 cast then it works on both
Alright, filed as a ticket at http://projects.scipy.org/numpy/ticket/1413
More information about the NumPy-Discussion