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

FUNCTION: Mat2Perm - calculate a permutation from its matrix of permutation

CALLING SEQUENCE:

Mat2Perm(sqm)
SG[Mat2Perm](sqm)

PARAMETERS:

sqm = any square permutation matrix

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 ]
 
> Mat2Perm( Perm2Mat([2,4,3,1]) );
 
                                [2, 4, 3, 1]
 

SEE ALSO: Perm2Mat Perm2RRep RRep2Perm