ValueError:需要太大的工作数组-无法在Linux服务器上使用标准32位LAPACK执行计算

时间:2019-06-20 14:14:08

标签: python-3.x numpy scipy anaconda svd

当我使用scipy.linalg.svd()处理大型矩阵时,程序会显示以下错误消息:

Traceback (most recent call last):
  File "LaplacianMatrix.py", line 98, in <module>
    LaplacianInverse = LaplacianPinv(Laplacian)
  File "LaplacianMatrix.py", line 67, in LaplacianPinv
    UL,SL,VL = linalg.svd(Laplacian)
  File "/home/task3/dylan/anaconda3/lib/python3.6/site-packages/scipy/linalg/decomp_svd.py", line 125, in svd
    compute_uv=compute_uv, full_matrices=full_matrices)
  File "/home/task3/dylan/anaconda3/lib/python3.6/site-packages/scipy/linalg/lapack.py", line 712, in _compute_lwork
    raise ValueError("Too large work array required -- computation cannot "
ValueError: Too large work array required -- computation cannot be performed with standard 32-bit LAPACK.

那我该怎么做才能使代码正常工作?

0 个答案:

没有答案