numpy array dtype is coming as int32 by default in a windows 10 64 bit machine

后端 未结 3 1792
生来不讨喜
生来不讨喜 2020-11-29 09:18

I have installed Anaconda 3 64 bit on my laptop and written the following code in Spyder:

import numpy.distutils.system_info as sysinfo
import numpy as np
im         


        
3条回答
  •  被撕碎了的回忆
    2020-11-29 10:08

    Default integer type np.int_ is C long:

    http://docs.scipy.org/doc/numpy-1.10.1/user/basics.types.html

    But C long is int32 in win64.

    https://msdn.microsoft.com/en-us/library/9c3yd98k.aspx

    This is kind of a weirdness of the win64 platform.

提交回复
热议问题