muEC::SG::Mat2Perm – calculates a permutation from its matrix

The muEC::SG::Mat2Perm function calculates a permutation from a matrix. Given a permutation perm, the corresponding matrix has entries 1 in position math and 0 otherwise.

→ Examples

Call:

muEC::SG::Mat2Perm(sqm)

Parameters:

sqm

any square permutation matrix

Related Functions:

muEC::SG::Perm2Mat, muEC::SG::Perm2RRep, muEC::SG::RRep2Perm

Example 1:

muEC::SG::Perm2Mat( [2,4,3,1] );

math

muEC::SG::Mat2Perm(%);

math