Permutes the indices of a transition probability matrix.
This functions simply switches the lables of A rows and columns from [0, 1, 2, ...] to permutation.
tprob : matrix
permutation: ndarray, int :
The permutation array, a list of unique indices that
permuted_A : matrix
The permuted matrix