muEC::SG::Perm2Code – calculates the code of a permutation
The muEC::SG::Perm2Code function calculates the Lehmer code of a permutation.
Let be the code of perm, then is equal to the number of indices such that .
Call:
muEC::SG::Perm2Code(perm)
Parameters:
perm: |
any list denoting a permutation |
Related Functions:
muEC::SG::Perm2Code( [4,1,5,2,3] );
muEC::SG::Code2Perm( % );