How does numpy.linalg.eigh compare to numpy.linalg.svd?
Problem description For a square matrix, one can obtain the SVD: X = USV' decomposition, by using simply the numpy.linalg.svd: u,s,vh = numpy.linalg.svd(X) routine or numpy.linalg.eigh, to compute the eigenvalue decomposition on the Hermitian matrix X'X and XX'. Are they using the same algorithm? Are they calling the same Lapack routine? Is there any difference in terms of speed? And stability?
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.