Ask Your Question
0

permutation matrix to permutation groups element

asked 2020-06-21 22:14:16 -0500

Ycs gravatar image

Hello:

How to convert a permutation matrix into a permutation groups element ?

Thanks!

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2020-06-22 14:21:35 -0500

rburing gravatar image

You just have to find the position of 1 in each column:

sage: M = matrix([[1, 0, 0],[0, 0, 1],[0, 1, 0]])
sage: sigma = Permutation([list(v).index(1)+1 for v in M.columns()])
sage: sigma
[1, 3, 2]
sage: sigma.to_matrix() == M
True
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2020-06-21 22:14:16 -0500

Seen: 37 times

Last updated: Jun 22