muEC::SG::Perm2Rise – the list of rises of a permutation
computes the list of rises of a permutation
Call:
muEC::SG::Perm2Rise(perm, <nb | rin | corin>)
Parameters:
perm: |
any list denoting a permutation |
Options:
nb: |
only counts objects |
rin: |
sum of rise positions |
corin: |
sum of values |
Related Functions:
Details:
The muEC::SG::Perm2Rise function computes the list of rises of the permutation perm, i.e. the list of positions , such that .
When called with the second argument rin, it returns the sum of the rise positions (rise index).
When called with the second argument corin, it returns the sum of the values (n - rise position), where n is equal to nops(perm).
muEC::SG::Perm2Rise( [3,1,4,2,6,5,7,8] );
muEC::SG::Perm2Rise( [3,1,4,2,6,5,7,8], nb );
muEC::SG::Perm2Rise( [3,1,4,2,6,5,7,8], rin );
muEC::SG::Perm2Rise( [3,1,4,2,6,5,7,8], corin );