Homomorphisms Between Matrix Groups#

Deprecated May, 2018; use sage.groups.libgap_morphism instead.

sage.groups.matrix_gps.morphism.to_libgap(x)[source]#

Helper to convert x to a LibGAP matrix or matrix group element.

Deprecated; use the x.gap() method or libgap(x) instead.

EXAMPLES:

sage: from sage.groups.matrix_gps.morphism import to_libgap
sage: to_libgap(GL(2,3).gen(0))
doctest:...: DeprecationWarning: this function is deprecated.
 Use x.gap() or libgap(x) instead.
See https://github.com/sagemath/sage/issues/25444 for details.
[ [ Z(3), 0*Z(3) ], [ 0*Z(3), Z(3)^0 ] ]
sage: to_libgap(matrix(QQ, [[1,2],[3,4]]))
[ [ 1, 2 ], [ 3, 4 ] ]
>>> from sage.all import *
>>> from sage.groups.matrix_gps.morphism import to_libgap
>>> to_libgap(GL(Integer(2),Integer(3)).gen(Integer(0)))
doctest:...: DeprecationWarning: this function is deprecated.
 Use x.gap() or libgap(x) instead.
See https://github.com/sagemath/sage/issues/25444 for details.
[ [ Z(3), 0*Z(3) ], [ 0*Z(3), Z(3)^0 ] ]
>>> to_libgap(matrix(QQ, [[Integer(1),Integer(2)],[Integer(3),Integer(4)]]))
[ [ 1, 2 ], [ 3, 4 ] ]