Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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.
- import numpy as np
- from scipy.linalg import svd
- a = np.ones((30000,30000))
- u,s,v = svd(a) # this fails
- u,s,v = svd(a, lapack_driver='gesvd') # this DOES NOT fail
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement