---
title: "Changing the Coefficient Field"
canonical: "https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/modification-coefficient-field.html"
source: "https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/modification-coefficient-field.md"
part: "Matrices and Linear Algebra"
chapter: "Vector Spaces"
breadcrumbs:
  - {"title": "Magma Handbook", "source": "https://docs.magma-maths.org/v2.30-1/index.md"}
  - {"title": "Matrices and Linear Algebra", "source": "https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/index-matrices-linear-algebra.md"}
  - {"title": "Vector Spaces", "source": "https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/index-vector-spaces.md"}
prev: {"title": "Subspaces, Quotient Spaces, and Homomorphisms", "source": "https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/subspace-quotient-homomorphism.md"}
next: {"title": "Basic Operations", "source": "https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/operation.md"}
intrinsics:
  - {"name": "ExtendField", "signature": "ExtendField(V, L): ModTupFld, Fld -> ModTupFld, MapHom"}
  - {"name": "RestrictField", "signature": "RestrictField(V, L): ModTupFld, Fld -> ModTupFld, MapHom"}
  - {"name": "VectorSpace", "signature": "VectorSpace(V, F): ModTupFld, Fld -> ModTupFld, Map"}
  - {"name": "KSpace", "signature": "KSpace(V, F): ModTupFld, Fld -> ModTupFld, Map"}
  - {"name": "KMatrixSpace", "signature": "KMatrixSpace(V, F): ModTupFld, Fld -> ModTupFld, Map"}
  - {"name": "KModule", "signature": "KModule(V, F): ModTupFld, Fld -> ModTupFld, Map"}
---

# Changing the Coefficient Field

The standard constructions described in [Standard Constructions](https://docs.magma-maths.org/v2.30-1/Modules/FreeModules/operation.md#modules-standard-constructions) for $R$-modules may be applied to vector spaces. In addition, we may extend or restrict the field of scalars, using the functions described here.

<a id="function-extendfield-modtupfld-fld"></a>
## `ExtendField(V, L): ModTupFld, Fld -> ModTupFld, MapHom`

Given a $K$-vector space $V$, with $K$ a field and $L$ an extension of $K$, construct the $L$-vector space $U = V \otimes_K L$. The function returns

**(a)**
the vector space $U$; and

**(b)**
the inclusion homomorphism $\phi\ : V \rightarrow U$.

<a id="function-restrictfield-modtupfld-fld"></a>
## `RestrictField(V, L): ModTupFld, Fld -> ModTupFld, MapHom`

Given a $K$-vector space $V$, with $K$ a field and $L$ a subfield of $K$, construct the $L$-vector space $U$ consisting of those vectors of $V$ having all of their components lying in the subfield $L$. The function returns

**(a)**
the vector space $U$; and

**(b)**
the restriction homomorphism $\phi\ : V \rightarrow U$.

<a id="function-vectorspace-modtupfld-fld"></a>
## `VectorSpace(V, F): ModTupFld, Fld -> ModTupFld, Map`

<a id="function-kspace-modtupfld-fld"></a>
## `KSpace(V, F): ModTupFld, Fld -> ModTupFld, Map`

<a id="function-kmatrixspace-modtupfld-fld"></a>
## `KMatrixSpace(V, F): ModTupFld, Fld -> ModTupFld, Map`

<a id="function-kmodule-modtupfld-fld"></a>
## `KModule(V, F): ModTupFld, Fld -> ModTupFld, Map`

Given an $n$-dimensional $K$-vector space $V$, and a subfield $F$ of a finite field or cyclotomic field $K$ such that $K$ has degree $m$ over $F$, construct a vector space $U$ of dimension $mn$ over the field $F$. The function returns

**(a)**
the vector space $U$; and

**(b)**
a mapping $\phi\ : V \rightarrow U$ such that a vector $(v_1, \ldots, v_i, \ldots, v_n)$ of $V$ is mapped into the vector

$$
(u_{11},\ldots, u_{1n}, \ldots, u_{i1}, \ldots, u_{in}, \ldots, u_{n1}, \ldots u_{nn} ),
$$

where $(u_{i1}, \ldots, u_{in})$ is the field element $v_i$ written as a vector over the subfield $F$.
