muEC::SG::Perm2Rise – the list of rises of a permutation

computes the list of rises of a permutation

→ Examples

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:

muEC::SG::Perm2Desc

Details:

The muEC::SG::Perm2Rise function computes the list of rises of the permutation perm, i.e. the list of positions math, such that math.

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).

Example 1:

muEC::SG::Perm2Rise( [3,1,4,2,6,5,7,8] );

math

muEC::SG::Perm2Rise( [3,1,4,2,6,5,7,8], nb );

math

muEC::SG::Perm2Rise( [3,1,4,2,6,5,7,8], rin );

math

muEC::SG::Perm2Rise( [3,1,4,2,6,5,7,8], corin );

math