How do I find out eigenvectors corresponding to a particular eigenvalue of a matrix?

后端 未结 2 1075

How do I find out eigenvectors corresponding to a particular eigenvalue?

I have a stochastic matrix(P), one of the eigenvalues of which is 1. I need to find the eigenv

2条回答
  •  遇见更好的自我
    2021-02-10 01:57

    If you are looking for one eigenvector corresponding to one eigenvalue, it could be much more efficient to use the scipy.sparse.linalg implementation of the eig function. It allows to look for a fixed number of eigenvectors and to shift the search around a specific value. You could do for instance :

    values, vectors = scipy.sparse.linalg.eigs(P, k=1, sigma=1)
    

提交回复
热议问题