Previous Up Next

2.10.13  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