我在下面有这个简单的 NumPy/Python 代码:
from numpy import zeros, float32
v = 3039345
d = 400
i = 354993
j = 0
var1 = zeros((v,d), dtype=float32)
var1[i, j] = 0 #the problem pops here
当最后一行被解释时,我有这个:
Process finished with exit code -1073741819 (0xC0000005)
如果 i < 354993 执行很好。我在 Windows 8 64 位上使用 Python 2.7 32 位。是因为内存限制?在这种情况下,让这个工作的最佳解决方案是什么?