---
title: "Endomorphisms"
canonical: "https://docs.magma-maths.org/v2.30-1/FiniteGroups/MatrixGroupsOverQAndZ/Endomorphisms.html"
source: "https://docs.magma-maths.org/v2.30-1/FiniteGroups/MatrixGroupsOverQAndZ/Endomorphisms.md"
part: "Finite Groups"
chapter: "Matrix Groups over Q and Z"
breadcrumbs:
  - {"title": "Magma Handbook", "source": "https://docs.magma-maths.org/v2.30-1/index.md"}
  - {"title": "Finite Groups", "source": "https://docs.magma-maths.org/v2.30-1/FiniteGroups/index-finite-groups.md"}
  - {"title": "Matrix Groups over Q and Z", "source": "https://docs.magma-maths.org/v2.30-1/FiniteGroups/MatrixGroupsOverQAndZ/index-matrix-groups-over-qand-z.md"}
prev: {"title": "Invariant Forms", "source": "https://docs.magma-maths.org/v2.30-1/FiniteGroups/MatrixGroupsOverQAndZ/forms.md"}
next: {"title": "New Groups From Others", "source": "https://docs.magma-maths.org/v2.30-1/FiniteGroups/MatrixGroupsOverQAndZ/Others.md"}
intrinsics:
  - {"name": "EndomorphismRing", "signature": "EndomorphismRing(G): GrpMat -> AlgMat"}
  - {"name": "EndomorphismAlgebra", "signature": "EndomorphismAlgebra(G): GrpMat -> AlgMat"}
  - {"name": "CentreOfEndomorphismRing", "signature": "CentreOfEndomorphismRing(G): GrpMat -> AlgMat"}
  - {"name": "CentreOfEndomorphismAlgebra", "signature": "CentreOfEndomorphismAlgebra(G): GrpMat -> AlgMat"}
  - {"name": "DimensionOfEndomorphismRing", "signature": "DimensionOfEndomorphismRing(G): GrpMat -> RngIntElt"}
  - {"name": "DimensionOfCentreOfEndomorphismRing", "signature": "DimensionOfCentreOfEndomorphismRing(G): GrpMat -> RngIntElt"}
  - {"name": "Endomorphisms", "signature": "Endomorphisms(G, n): GrpMat, RngIntElt -> [ AlgMatElt ]"}
  - {"name": "CentralEndomorphisms", "signature": "CentralEndomorphisms(G, n): GrpMat, RngIntElt -> [ AlgMatElt ]"}
---

# Endomorphisms

<a id="function-endomorphismring-grpmat"></a>
## `EndomorphismRing(G): GrpMat -> AlgMat`

<a id="function-endomorphismalgebra-grpmat"></a>
## `EndomorphismAlgebra(G): GrpMat -> AlgMat`

For an integral or rational matrix group $G$, return the endomorphism ring (i.e. the commuting algebra) of $G$ as a subalgebra of $M_n({\mathbb{Z}})$ or $M_n({\mathbb{Q}})$ respectively.

<a id="function-centreofendomorphismring-grpmat"></a>
## `CentreOfEndomorphismRing(G): GrpMat -> AlgMat`

<a id="function-centreofendomorphismalgebra-grpmat"></a>
## `CentreOfEndomorphismAlgebra(G): GrpMat -> AlgMat`

For an integral or rational matrix group $G$, return the center of the endomorphism ring (i.e. the commuting algebra) of $G$ as a subalgebra of $M_n({\mathbb{Z}})$ or $M_n({\mathbb{Q}})$ respectively.

<a id="function-dimensionofendomorphismring-grpmat"></a>
## `DimensionOfEndomorphismRing(G): GrpMat -> RngIntElt`

Return the dimension of the endomorphism ring of an integral or rational matrix group $G$ by a modular method.

<a id="function-dimensionofcentreofendomorphismring-grpmat"></a>
## `DimensionOfCentreOfEndomorphismRing(G): GrpMat -> RngIntElt`

Return the dimension of the centre of the endomorphism ring of an integral or rational matrix group $G$ by a modular method.

<a id="function-endomorphisms-grpmat-rngintelt"></a>
## `Endomorphisms(G, n): GrpMat, RngIntElt -> [ AlgMatElt ]`

For an integral or rational matrix group $G$, return a sequence containing $n$ independent endomorphisms of $G$. $n$ must be in the range $[0 .. d]$, where $d$ is the dimension of the endomorphism ring of $G$.

<a id="function-centralendomorphisms-grpmat-rngintelt"></a>
## `CentralEndomorphisms(G, n): GrpMat, RngIntElt -> [ AlgMatElt ]`

For an integral or rational matrix group $G$, return a sequence containing $n$ independent central endomorphisms of $G$. $n$ must be in the range $[0 .. d]$, where $d$ is the dimension of the centre of the endomorphism ring of $G$.
