Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Like that:

sage: M3 = MatrixSpace(QQ, 3)
sage: A = M3.matrix([[1, 0, 0], [0, -1, 0], [0, 0, -1]])
sage: B = M3.matrix([[0, 1, 0], [0, 0, 1], [1, 0, 0]])
sage: G = MatrixGroup([A,B])
sage: list(G)
[
[1 0 0]  [-1  0  0]  [0 0 1]  [ 0  0 -1]  [0 1 0]  [ 0 -1  0]
[0 1 0]  [ 0 -1  0]  [1 0 0]  [-1  0  0]  [0 0 1]  [ 0  0 -1]
[0 0 1], [ 0  0  1], [0 1 0], [ 0  1  0], [1 0 0], [ 1  0  0],

[ 1  0  0]  [-1  0  0]  [ 0  0  1]  [ 0  0 -1]  [ 0  1  0]  [ 0 -1  0]
[ 0 -1  0]  [ 0  1  0]  [-1  0  0]  [ 1  0  0]  [ 0  0 -1]  [ 0  0  1]
[ 0  0 -1], [ 0  0 -1], [ 0 -1  0], [ 0 -1  0], [-1  0  0], [-1  0  0]
]