FUNCTION: Vect2Perm - compute a canonical permutation from a vector
CALLING SEQUENCE:
- Vect2Perm(l)
- SG[Vect2Perm](l)
-
PARAMETERS:
- l = any list of positive integers
SYNOPSIS:
- The Vect2Perm function calculates a canonical permutation from the list
l, having as cycle type, the reordering of l.
- Let l=[3, 2, 4], Vect2Perm(l) gives a permutation in S3 x S2 x S4 which
is a direct product of cycles of length 3, 2, 4.
- Whenever there is a conflict between the function name Vect2Perm and
another name used in the same session, use the long form
SG['Vect2Perm'].
EXAMPLES:
> with(SG):
> Vect2Perm([3,1,4,1]);
[3, 1, 2, 4, 8, 5, 6, 7, 9]
SEE ALSO: Cycle2Perm Perm2Cycle Perm2CycleType