---
title: "Constructions for $A$-Modules"
canonical: "https://docs.magma-maths.org/v2.30-1/RepresentationTheory/ModulesOverAnAlgebraAndGroupRepresentations/A-module.html"
source: "https://docs.magma-maths.org/v2.30-1/RepresentationTheory/ModulesOverAnAlgebraAndGroupRepresentations/A-module.md"
part: "Representation Theory"
chapter: "Modules over an Algebra and Group Representations"
breadcrumbs:
  - {"title": "Magma Handbook", "source": "https://docs.magma-maths.org/v2.30-1/index.md"}
  - {"title": "Representation Theory", "source": "https://docs.magma-maths.org/v2.30-1/RepresentationTheory/index-representation-theory.md"}
  - {"title": "Modules over an Algebra and Group Representations", "source": "https://docs.magma-maths.org/v2.30-1/RepresentationTheory/ModulesOverAnAlgebraAndGroupRepresentations/index-modules-over-an-algebra-and-group-representations.md"}
prev: {"title": "Introduction", "source": "https://docs.magma-maths.org/v2.30-1/RepresentationTheory/ModulesOverAnAlgebraAndGroupRepresentations/introduction.md"}
next: {"title": "Constructions for $K[G]$-Modules", "source": "https://docs.magma-maths.org/v2.30-1/RepresentationTheory/ModulesOverAnAlgebraAndGroupRepresentations/K[G]-module.md"}
intrinsics:
  - {"name": "RModule", "signature": "RModule(A): AlgMat -> ModRng"}
  - {"name": "RModule", "signature": "RModule(Q): [ MtrxS ] -> ModTupRng"}
examples:
  - "ex-2aced1"
---

# Constructions for $A$-Modules

<a id="function-rmodule-algmat"></a>
## `RModule(A): AlgMat -> ModRng`

Given a subalgebra $A$ of $M_n(K)$, create the right $A$-module $M$ with underlying vector space $K^{(n)}$, where the action of $a \in A$ is given by $m*a$, $m \in M$.

<a id="function-rmodule-mtrxs"></a>
## `RModule(Q): [ MtrxS ] -> ModTupRng`

Given the subalgebra $A$ of $M_n(K)$ generated by the terms of the sequence $Q$, create the right $A$-module $M$ with underlying vector space $K^{(n)}$, where the action of $a \in A$ is given by $m*a$, $m \in M$.

<a id="example-ex-2aced1"></a>
## `Example: Module of Dimension 6 over a Finite Field (ex-2aced1)`

We construct the $6$-dimensional module over ${\bf F}_{2}$ with an action given by the matrices

$$
\begin{pmatrix}1&0&0&1&0&1\\
   0&1&0&0&1&1\\
   0&1&1&1&1&0\\
   0&0&0&1&1&0\\
   0&0&0&1&0&1\\
   0&1&0&1&0&0\end{pmatrix}\qquad\qquad
   \begin{pmatrix}0&1&1&0&1&0\\
   0&0&1&1&1&1\\
   1&0&0&1&0&1\\
   0&0&0&1&0&0\\
   0&0&0&0&1&0\\
   0&0&0&0&0&1\end{pmatrix}
$$

```magma
> A := MatrixAlgebra<GF(2), 6 |
>   [ 1,0,0,1,0,1,
>     0,1,0,0,1,1,
>     0,1,1,1,1,0,
>     0,0,0,1,1,0,
>     0,0,0,1,0,1,
>     0,1,0,1,0,0 ],
>   [ 0,1,1,0,1,0,
>     0,0,1,1,1,1,
>     1,0,0,1,0,1,
>     0,0,0,1,0,0,
>     0,0,0,0,1,0,
>     0,0,0,0,0,1 ] >;
> M := RModule(A);
> M;
RModule M of dimension 6 over GF(2)
```
