|
B.8.0.3 SymGroup
Procedure from library qmatrix.lib (see qmatrix_lib).
- Usage:
- SymGroup(n); n an integer, n>0
- Purpose:
- present the symmetric group S(n) via integer vectors
- Return:
- intmat
- Note:
- each row of the output integer matrix is an element of S(n)
Example:
| LIB "qmatrix.lib";
// "S(3)={(1,2,3),(1,3,2),(3,1,2),(2,1,3),(2,3,1),(3,2,1)}";
SymGroup(3);
==> 1,2,3,
==> 1,3,2,
==> 3,1,2,
==> 2,1,3,
==> 2,3,1,
==> 3,2,1
| LengthSym, LengthSymElement
|