[Numpy-discussion] Really strange result

Neal Becker ndbecker2@gmail....
Fri May 1 14:02:32 CDT 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