Homomorphisms Between Matrix Groups#

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

sage.groups.matrix_gps.morphism.to_libgap(x)#

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 ] ]