ACE BN BNA CG CLG COMP FM FREE HEKA IDCA NCA NCSF PART SFA SG SGA SP SYMF TAB TYP

FUNCTION: Perm2Rise - compute the list of rises of a permutation

CALLING SEQUENCE:

Perm2Rise(perm)
SG[Perm2Rise](perm)

PARAMETERS:

perm = any list denoting a permutation

SYNOPSIS:

EXAMPLES:


> with(SG):
> perm:=[3,1,4,2,6,5,7,8]:
> Perm2Rise(perm);
 
                                 [2, 4, 6, 7]
 
> Perm2Rise(perm, 'nb');
 
                                      4
 
> Perm2Rise(perm, 'rin');
 
                                      9
 
> Perm2Rise(perm, 'corin');
 
                                      13
 

SEE ALSO: Perm2Desc