on-internet
← Community

How does numpy.linalg.eigh compare to numpy.linalg.svd?

Stack Overflow ·

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?

Comments

Sign in or sign up to comment and upvote.

No comments yet.