msmbuilder.MSMLib.permute_mat

msmbuilder.MSMLib.permute_mat(A, permutation)[source]

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.

Parameters:

tprob : matrix

permutation: ndarray, int :

The permutation array, a list of unique indices that

Returns:

permuted_A : matrix

The permuted matrix

Versions