小编eri*_*icf的帖子

scipy大稀疏矩阵

我正在尝试使用大型10 ^ 5x10 ^ 5稀疏矩阵,但似乎正在对抗scipy:

n = 10 ** 5
x = scipy.sparse.rand(n, n, .001)
Run Code Online (Sandbox Code Playgroud)

得到

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
Run Code Online (Sandbox Code Playgroud)

有谁知道为什么有限制,如果我可以避免它?(fyi,我正在使用带有4GB内存的macbook air和enthought发行版)

python scipy

3
推荐指数
1
解决办法
1764
查看次数

标签 统计

python ×1

scipy ×1