def perminverse(s):
X = np.array(list(range(len(s))))<EOL>X[s] = list(range(len(s)))<EOL>return X<EOL>
Fast inverse of a (numpy) permutation.

**Paramters**

        **s** :  sequence

                Sequence of indices giving a permutation.

**Returns**

        **inv** :  numpy array

                Sequence of indices giving the inverse of permutation `s`.