Ask Your Question

Revision history [back]

Notice the difference

sage: B = Matrix(ZZ, [[1,0,0],[1,-1,1],[0,0,2]])
sage: MatrixGroup([B])
Traceback (most recent call last):
...
ValueError: each generator must be an invertible matrix

versus

sage: B = Matrix(QQ, [[1,0,0],[1,-1,1],[0,0,2]])
sage: MatrixGroup([B])
Matrix group over Rational Field with 1 generators (
[ 1  0  0]
[ 1 -1  1]
[ 0  0  2]
)