I have a Markov chain given as a large sparse scipy
matrix A
. (I\'ve constructed the matrix in scipy.sparse.dok_matrix
format, but con
Use power iteration (for example): http://www.google.com/search?q=power%20iteration%20markov%20chain
Or, you can use the shift-invert mode of scipy.sparse.linalg.eig (which is ARPACK) to look for eigenvalues close to 1. "Specifying" normalization is not necessary, as you can just normalize the values afterward.