---
title: "Changing Rings"
canonical: "https://docs.magma-maths.org/v2.30-1/Algebras/MatrixAlgebras/change-ring.html"
source: "https://docs.magma-maths.org/v2.30-1/Algebras/MatrixAlgebras/change-ring.md"
part: "Algebras"
chapter: "Matrix Algebras"
breadcrumbs:
  - {"title": "Magma Handbook", "source": "https://docs.magma-maths.org/v2.30-1/index.md"}
  - {"title": "Algebras", "source": "https://docs.magma-maths.org/v2.30-1/Algebras/index-algebras.md"}
  - {"title": "Matrix Algebras", "source": "https://docs.magma-maths.org/v2.30-1/Algebras/MatrixAlgebras/index-matrix-algebras.md"}
prev: {"title": "Operations on Matrix Algebras", "source": "https://docs.magma-maths.org/v2.30-1/Algebras/MatrixAlgebras/operation.md"}
next: {"title": "Elementary Operations on Elements", "source": "https://docs.magma-maths.org/v2.30-1/Algebras/MatrixAlgebras/element.md"}
intrinsics:
  - {"name": "ChangeRing", "signature": "ChangeRing(A, S): AlgMatV, Rng -> AlgMat, Map"}
  - {"name": "ChangeRing", "signature": "ChangeRing(A, S, f): AlgMatV, Rng, Map -> AlgMat, Map"}
  - {"name": "hom", "signature": "hom< A -> B | f >: AlgMat, AlgMat, Map -> Map"}
---

# Changing Rings

<a id="function-changering-algmatv-rng"></a>
## `ChangeRing(A, S): AlgMatV, Rng -> AlgMat, Map`

Given a matrix algebra $A$ with base ring $R$, together with a ring $S$, construct the matrix algebra $B$ with base ring $S$ obtained by coercing the components of elements of $A$ into $S$, together with the homomorphism from $A$ to $B$.

<a id="function-changering-algmatv-rng-map"></a>
## `ChangeRing(A, S, f): AlgMatV, Rng, Map -> AlgMat, Map`

Given a matrix algebra $A$ with base ring $R$, together with a ring $S$ and a homomorphism $f: R \rightarrow S$, construct the matrix algebra $B$ with base ring $S$ obtained by mapping the components of elements of $R$ into $S$ by $f$, together with the homomorphism from $A$ to $B$.

<a id="constructor-constructor-hom-algmat-algmat-map-map"></a>
## `hom< A -> B | f >: AlgMat, AlgMat, Map -> Map`

Given *full* matrix algebras $A$ and $B$, together with a homomorphism $f$ from the base ring $R$ of $A$ to the base ring $S$ of $B$, create the homomorphism from $A$ to $B$ which, given a matrix in $A$, applies $f$ to the entries of the matrix.
