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

FUNCTION: Perm2Mat - calculate the permutation matrix

CALLING SEQUENCE:

Perm2Mat(perm)
SG[Perm2Mat](perm)

PARAMETERS:

perm = any list denoting a permutation

SYNOPSIS:

EXAMPLES:


> with(SG):
> Perm2Mat([2,4,3,1]);
 
                               [ 0  1  0  0 ]
                               [            ]
                               [ 0  0  0  1 ]
                               [            ]
                               [ 0  0  1  0 ]
                               [            ]
                               [ 1  0  0  0 ]
 

SEE ALSO: Mat2Perm Perm2RRep RRep2Perm