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

FUNCTION: Vect2Perm - compute a canonical permutation from a vector

CALLING SEQUENCE:

Vect2Perm(l)
SG[Vect2Perm](l)

PARAMETERS:

l = any list of positive integers

SYNOPSIS:

EXAMPLES:


> with(SG):
> Vect2Perm([3,1,4,1]);
 
                           [3, 1, 2, 4, 8, 5, 6, 7, 9]
 

SEE ALSO: Cycle2Perm Perm2Cycle Perm2CycleType