---
title: "Accessing Module Information"
canonical: "https://docs.magma-maths.org/v2.30-1/Modules/FreeModules/access.html"
source: "https://docs.magma-maths.org/v2.30-1/Modules/FreeModules/access.md"
part: "Modules"
chapter: "Free Modules"
breadcrumbs:
  - {"title": "Magma Handbook", "source": "https://docs.magma-maths.org/v2.30-1/index.md"}
  - {"title": "Modules", "source": "https://docs.magma-maths.org/v2.30-1/Modules/index-modules.md"}
  - {"title": "Free Modules", "source": "https://docs.magma-maths.org/v2.30-1/Modules/FreeModules/index-free-modules.md"}
prev: {"title": "Definition of a Module", "source": "https://docs.magma-maths.org/v2.30-1/Modules/FreeModules/creation-module.md"}
next: {"title": "Standard Constructions", "source": "https://docs.magma-maths.org/v2.30-1/Modules/FreeModules/operation.md"}
intrinsics:
  - {"name": ".", "signature": "M . i: ModTupRng, RngIntElt -> ModElt"}
  - {"name": "CoefficientRing", "signature": "CoefficientRing(M): ModTupRng -> Rng"}
  - {"name": "BaseRing", "signature": "BaseRing(M): ModTupRng -> Rng"}
  - {"name": "CoefficientRing", "signature": "CoefficientRing(M): ModRng -> Rng"}
  - {"name": "BaseRing", "signature": "BaseRing(M): ModRng -> Rng"}
  - {"name": "CoefficientField", "signature": "CoefficientField(M): ModFld -> Fld"}
  - {"name": "BaseField", "signature": "BaseField(M): ModFld -> Fld"}
  - {"name": "Generators", "signature": "Generators(M): ModTupRng -> { ModTupRngElt }"}
  - {"name": "OverDimension", "signature": "OverDimension(M): ModTupRng -> RngIntElt"}
  - {"name": "OverDimension", "signature": "OverDimension(u): ModTupRngElt -> RngIntElt"}
  - {"name": "Moduli", "signature": "Moduli(M): ModTupRng -> [ RngElt ]"}
  - {"name": "Parent", "signature": "Parent(u): ModTupRngElt -> ModRng"}
  - {"name": "Generic", "signature": "Generic(M): ModRng -> ModRng"}
---

# Accessing Module Information

<a id="operation-operation-modtuprng-rngintelt-modelt"></a>
## `M . i: ModTupRng, RngIntElt -> ModElt`

Given an $R$-module $M$ and a positive integer $i$, return the $i$-th generator of $M$. The integer $i$ must lie in the range $[1, r]$, where $r$ is the number of generators for $M$.

<a id="function-coefficientring-modtuprng"></a>
## `CoefficientRing(M): ModTupRng -> Rng`

<a id="function-basering-modtuprng"></a>
## `BaseRing(M): ModTupRng -> Rng`

<a id="function-coefficientring-modrng"></a>
## `CoefficientRing(M): ModRng -> Rng`

<a id="function-basering-modrng"></a>
## `BaseRing(M): ModRng -> Rng`

<a id="function-coefficientfield-modfld"></a>
## `CoefficientField(M): ModFld -> Fld`

<a id="function-basefield-modfld"></a>
## `BaseField(M): ModFld -> Fld`

Given an $R$-module $M$ which is defined as a submodule of $S^{(n)}$, return the ring $S$.

<a id="function-generators-modtuprng"></a>
## `Generators(M): ModTupRng -> { ModTupRngElt }`

The generators for the $R$-module $M$, returned as a set.

<a id="function-overdimension-modtuprng"></a>
## `OverDimension(M): ModTupRng -> RngIntElt`

Given an $R$-module $M$ which is an embedded submodule of the module $S^{(n)}$, return $n$.

<a id="function-overdimension-modtuprngelt"></a>
## `OverDimension(u): ModTupRngElt -> RngIntElt`

Given an element $u$ of an embedded submodule of the module $S^{(n)}$, return $n$.

<a id="function-moduli-modtuprng"></a>
## `Moduli(M): ModTupRng -> [ RngElt ]`

The column moduli of the module $M$ over a euclidean domain.

<a id="function-parent-modtuprngelt"></a>
## `Parent(u): ModTupRngElt -> ModRng`

Given an element $u$ belonging to the $R$-module $M$, return $M$.

<a id="function-generic-modrng"></a>
## `Generic(M): ModRng -> ModRng`

Given an $R$-module $M$ which is a submodule of the module $R^{(n)}$, return the module $R^{(n)}$ as an $R$-module.
