【发布时间】:2012-03-13 14:50:36
【问题描述】:
我正在尝试使用大型 10^5x10^5 稀疏矩阵,但似乎遇到了 scipy:
n = 10 ** 5
x = scipy.sparse.rand(n, n, .001)
得到
ValueError: Trying to generate a random sparse matrix such as the
product of dimensions is greater than 2147483647 - this is not
supported on this machine
有谁知道为什么会有限制以及我是否可以避免它? (仅供参考,我使用的是具有 4gb 内存的 macbook air 和 enthought 分布)
【问题讨论】: