Previous Up Next

5.10.15  Inverse of a permutation: perminv

perminv takes as argument a permutation.
perminv returns the permutation that is the inverse of the permutation given as argument.
Input:

perminv([1,2,0])

Output

[2,0,1]

Previous Up Next