[Numpy-discussion] change default integer from int32 to int64 on win64?

Olivier Grisel olivier.grisel at ensta.org
Fri Jul 25 09:06:40 EDT 2014


The dtype returned by np.where looks right (int64):

>>> import platform
>>> platform.architecture()
('64bit', 'WindowsPE')
>>> import numpy as np
>>> np.__version__
'1.9.0b1'
>>> a = np.zeros(10)
>>> np.where(a == 0)
(array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9], dtype=int64),)

-- 
Olivier



More information about the NumPy-Discussion mailing list