Computational Physics, Python, Linear Algebra, Svd, Code.
(will be covered later in course) %time U, s, Vh = linalg.svd(vectors, 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) What can be say about singular values? # plot for the singular values