Computational Physics, Python, Linear Algebra, Svd, Code.
full_matrices=False) CPU times: user 27.2 s, sys: 812 ms, total: 28 s Wall time: 27.9 s print(U.shape, s.shape, Vh.shape) (2034, 2034) (2034,) (2034, 26576) Fortunately, there is a faster way: %time u, s, v = decomposition.randomized_svd(vectors, 5) CPU times: user 144 ms, sys: 8 ms, total: 152 ms