I'm programming some program which calculates the limit of markov chain.
if the markov matrix diverges, I should transform it into the form dA + (1-d)E, where both A and E are n * n matrix, and all of the elements of E are 1/n.
But if I apply that transformation when the input converges, the wrong value comes out.
Is there any easy way to check if the markov matrix converges?