[Previous] [Next] [Contents]

SG::Mat2Perm -- calculates a permutation from its matrix

Call(s)


SG::Mat2Perm(sqm)

Parameters

sqm- any square permutation matrix

Introduction

The SG::Mat2Perm function calculates a permutation from a matrix. Given a permutation perm, the corresponding 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  |
                             +-            -+
>> muEC::SG::Mat2Perm(%);
                               [2, 4, 3, 1]

Related Functions

Perm2Mat, Perm2RRep, RRep2Perm

[Previous] [Next] [Contents]


MuPAD Combinat, an open source algebraic combinatorics package