[Numpy-discussion] Really strange result

Neal Becker ndbecker2 at gmail.com
Fri May 1 15:02:32 EDT 2009


In [16]: (np.linspace (0, len (x)-1, len(x)).astype (np.uint64)*2).dtype
Out[16]: dtype('uint64')

In [17]: (np.linspace (0, len (x)-1, len(x)).astype (np.uint64)*n).dtype
Out[17]: dtype('float64')

In [18]: type(n)
Out[18]: <type 'int'>

Now that's just strange.  What's going on?






More information about the NumPy-Discussion mailing list