2*np.float32 gives float64

Issue #27 resolved
Andreas Kloeckner created an issue

Numpy:

>>> import numpy as np
>>> a = np.array([1,2,3], dtype=np.float32)
>>> (2*a).dtype
dtype('float32')
>>> 

Numpypy: (450881e, with Pypy 2.6.0-2 from Debian)

>>>> import numpy as np
>>>> a = np.array([1,2,3], dtype=np.float32)
>>>> (2*a).dtype
dtype('float64')
>>>> 

Comments (1)

  1. Log in to comment