on-internet
← Community

how does numpy.linalg.eigh vs numpy.linalg.svd?

Stack Overflow ·

problem description For a square matrix, one can obtain the SVD X= USV' decomposition, by using simply numpy.linalg.svd u,s,vh = numpy.linalg.svd(X) routine or numpy.linalg.eigh, to compute the eig decomposition on Hermitian matrix X'X and XX' Are they using the same algorithm? 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.