[Previous] [Next] [Contents]

SG::Perm2Mat -- calculates the permutation matrix

Call(s)


SG::Perm2Mat(perm)

Parameters

perm- any list denoting a permutation

Introduction

The SG::Perm2Mat function calculates the permutation matrix corresponding to perm. This matrix has entries 1 in position (i, perm[i]) and 0 otherwise.

Example 1

>> muEC::SG::Perm2Mat( [2,4,3,1] );
                             +-            -+
                             |  0, 1, 0, 0  |
                             |              |
                             |  0, 0, 0, 1  |
                             |              |
                             |  0, 0, 1, 0  |
                             |              |
                             |  1, 0, 0, 0  |
                             +-            -+

Related Functions

Mat2Perm, Perm2RRep, RRep2Perm

[Previous] [Next] [Contents]


MuPAD Combinat, an open source algebraic combinatorics package