---
title: "Vector Spaces"
canonical: "https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/index-vector-spaces.html"
source: "https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/index-vector-spaces.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"}
prev: {"title": "Bibliography", "source": "https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/SparseMatrices/bibliography.md"}
next: {"title": "Introduction", "source": "https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/introduction.md"}
---

<a id="vector-space-linear-transformation"></a>
<a id="chapvectspace"></a>
# Vector Spaces

- [Introduction](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/introduction.md)
  - [Vector Space Categories](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/introduction.md#vector-space-categories)
  - [The Construction of a Vector Space](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/introduction.md#the-construction-of-a-vector-space)
- [Creation of Vector Spaces and Arithmetic with Vectors](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/creation-arithmetic.md)
  - [Construction of a Vector Space](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/creation-arithmetic.md#construction-of-a-vector-space)
    - [`VectorSpace(K, n): Fld, RngIntElt → ModTupFld`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/creation-arithmetic.md#function-vectorspace-fld-rngintelt)
    - [`KSpace(K, n): Fld, RngIntElt → ModTupFld`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/creation-arithmetic.md#function-kspace-fld-rngintelt)
    - [`KModule(K, n): Fld, RngIntElt → ModFld`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/creation-arithmetic.md#function-kmodule-fld-rngintelt)
    - [`KMatrixSpace(K, m, n): Fld, RngIntElt, RngIntElt → ModMatFld`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/creation-arithmetic.md#function-kmatrixspace-fld-rngintelt-rngintelt)
    - [`Hom(V, W): ModTupFld, ModTupFld → ModMatFld`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/creation-arithmetic.md#function-hom-modtupfld-modtupfld)
    - [Example: Rational Vector Space of Dimension 6](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/creation-arithmetic.md#example-ex-d5b27e)
    - [Example: Matrix Space over a Quadratic Field](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/creation-arithmetic.md#example-ex-4fca7f)
  - [Construction of a Vector Space with Inner Product Matrix](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/creation-arithmetic.md#construction-of-a-vector-space-with-inner-product-matrix)
    - [`VectorSpace(K, n, F): Fld, RngIntElt, Mtrx → ModTupFld`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/creation-arithmetic.md#function-vectorspace-fld-rngintelt-mtrx)
    - [`KSpace(K, n, F): Fld, RngIntElt, Mtrx → ModTupFld`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/creation-arithmetic.md#function-kspace-fld-rngintelt-mtrx)
  - [Construction of a Vector](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/creation-arithmetic.md#construction-of-a-vector)
    - [`elt<V | L>: ModTupFld, List → ModTupFldElt`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/creation-arithmetic.md#constructor-constructor-elt-modtupfld-list-modtupfldelt)
    - [`V ! Q: ModTupFld, [RngElt] → ModTupFldElt`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/creation-arithmetic.md#operation-op-modtupfld-rngelt)
    - [`CharacteristicVector(V, S): ModTupFld, { RngElt } → ModTupFldElt`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/creation-arithmetic.md#function-characteristicvector-modtupfld-rngelt)
    - [`V ! 0: ModTupFld, RngIntElt → ModTupFldElt`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/creation-arithmetic.md#operation-op-modtupfld-rngintelt)
    - [`Zero(V): ModTupFld → ModTupFldElt`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/creation-arithmetic.md#function-zero-modtupfld)
    - [`Random(V): ModTupFld → ModTupFldElt`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/creation-arithmetic.md#function-random-modtupfld)
    - [Example: Vector over a Finite Field](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/creation-arithmetic.md#example-ex-df9b72)
    - [Example: Matrix over a Number Field](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/creation-arithmetic.md#example-ex-d17116)
  - [Deconstruction of a Vector](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/creation-arithmetic.md#deconstruction-of-a-vector)
    - [`ElementToSequence(u): ModTupFldElt → [RngElt]`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/creation-arithmetic.md#function-elementtosequence-modtupfldelt)
    - [`Eltseq(u): ModTupFldElt → [RngElt]`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/creation-arithmetic.md#function-eltseq-modtupfldelt)
  - [Arithmetic with Vectors](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/creation-arithmetic.md#arithmetic-with-vectors)
    - [`u + v: ModTupFldElt, ModTupFldElt → ModTupFldElt`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/creation-arithmetic.md#operation-op-plus-modtupfldelt-modtupfldelt)
    - [`- u: ModTupFldElt → ModTupFldElt`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/creation-arithmetic.md#operation-operation-modtupfldelt-modtupfldelt)
    - [`u - v: ModTupFldElt, ModTupFldElt → ModTupFldElt`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/creation-arithmetic.md#operation-op-minus-modtupfldelt-modtupfldelt)
    - [`x * u: FldElt, ModTupFldElt → ModTupFldElt`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/creation-arithmetic.md#operation-op-times-fldelt-modtupfldelt)
    - [`u * x: ModTupFldElt, FldElt → ModTupFldElt`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/creation-arithmetic.md#operation-op-times-modtupfldelt-fldelt)
    - [`u / x: ModTupFldElt, FldElt → ModTupFldElt`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/creation-arithmetic.md#operation-op-div-modtupfldelt-fldelt)
    - [`NumberOfColumns(u): ModTupFldElt → RngIntElt`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/creation-arithmetic.md#function-numberofcolumns-modtupfldelt)
    - [`Ncols(u): ModTupFldElt → RngIntElt`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/creation-arithmetic.md#function-ncols-modtupfldelt)
    - [`Depth(u): ModTupRngElt → RngIntElt`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/creation-arithmetic.md#function-depth-modtuprngelt)
    - [`(u, v): ModTupFldElt, ModTupFldElt → FldElt`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/creation-arithmetic.md#literal-literal-u-v-modtupfldelt-modtupfldelt-fldelt)
    - [`InnerProduct(u, v): ModTupFldElt, ModTupFldElt → FldElt`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/creation-arithmetic.md#function-innerproduct-modtupfldelt-modtupfldelt)
    - [`IsZero(u): ModElt → BoolElt`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/creation-arithmetic.md#function-iszero-modelt)
    - [`Norm(u): ModTupFldElt → FldElt`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/creation-arithmetic.md#function-norm-modtupfldelt)
    - [`Normalise(u): ModTupFldElt → ModTupFldElt`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/creation-arithmetic.md#function-normalise-modtupfldelt)
    - [`Normalize(u): ModTupFldElt → ModTupFldElt`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/creation-arithmetic.md#function-normalize-modtupfldelt)
    - [`Rotate(u, k): ModTupFldElt, RngIntElt → ModTupFldElt`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/creation-arithmetic.md#function-rotate-modtupfldelt-rngintelt)
    - [`Rotate(~u, k): ModTupFldElt, RngIntElt`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/creation-arithmetic.md#procedure-rotate-modtupfldelt-rngintelt-ref)
    - [`NumberOfRows(u): ModTupFldElt → RngIntElt`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/creation-arithmetic.md#function-numberofrows-modtupfldelt)
    - [`Nrows(u): ModTupFldElt → RngIntElt`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/creation-arithmetic.md#function-nrows-modtupfldelt)
    - [`Support(u): ModTupFldElt → { RngElt }`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/creation-arithmetic.md#function-support-modtupfldelt)
    - [`TensorProduct(u, v): ModTupFldElt, ModTupFldElt → FldElt`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/creation-arithmetic.md#function-tensorproduct-modtupfldelt-modtupfldelt)
    - [`Trace(u, F): ModTupFldElt, Fld → ModTupFldElt`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/creation-arithmetic.md#function-trace-modtupfldelt-fld)
    - [`Trace(u): ModTupFldElt → ModTupFldElt`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/creation-arithmetic.md#function-trace-modtupfldelt)
    - [`Weight(u): ModTupFldElt → RngIntElt`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/creation-arithmetic.md#function-weight-modtupfldelt)
    - [Example: Vector Arithmetic over a Cyclotomic Field](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/creation-arithmetic.md#example-ex-ca5d9a)
    - [Example: Defining a Nontrivial Inner Product](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/creation-arithmetic.md#example-ex-e5eb13)
  - [Indexing Vectors and Matrices](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/creation-arithmetic.md#indexing-vectors-and-matrices)
    - [`u[i]: ModTupFldElt, RngIntElt → RngElt`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/creation-arithmetic.md#literal-literal-u-i-modtupfldelt-rngintelt-rngelt)
    - [`u[i]: ModTupFldElt, RngIntElt → ModTupFldElt`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/creation-arithmetic.md#indexed-indexed-u-modtupfldelt-rngintelt-modtupfldelt)
    - [`u[i, j]: ModTupFldElt, RngIntElt, RngIntElt → ModTupFldElt`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/creation-arithmetic.md#indexed-indexed-u-modtupfldelt-rngintelt-rngintelt-modtupfldelt)
    - [`u[i] := x: ModTupFldElt, RngIntElt, RngElt → ModTupFldElt`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/creation-arithmetic.md#literal-literal-u-i-x-modtupfldelt-rngintelt-rngelt-modtupfldelt)
    - [`u[i] := x: ModTupFldElt, RngIntElt, ModTupFldElt → ModTupFldElt`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/creation-arithmetic.md#literal-literal-u-i-x-modtupfldelt-rngintelt-modtupfldelt-modtupfldelt)
    - [`u[i, j] := x: ModTupFldElt, RngIntElt, RngIntElt, ModTupFldElt → ModTupFldElt`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/creation-arithmetic.md#literal-literal-u-i-j-x-modtupfldelt-rngintelt-rngintelt-modtupfldelt-modtupfldelt)
    - [Example: Indexing Tuple and Matrix Spaces](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/creation-arithmetic.md#example-ex-876f3e)
- [Subspaces, Quotient Spaces, and Homomorphisms](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/subspace-quotient-homomorphism.md)
  - [Construction of Subspaces](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/subspace-quotient-homomorphism.md#construction-of-subspaces)
    - [`sub<V | L>: ModTupFld, List → ModTupFld`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/subspace-quotient-homomorphism.md#constructor-constructor-sub-modtupfld-list-modtupfld)
    - [`Morphism(U, V): ModTupFld, ModTupFld → RModMatElt`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/subspace-quotient-homomorphism.md#function-morphism-modtupfld-modtupfld)
    - [Example: Golay Code in a Vector Space](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/subspace-quotient-homomorphism.md#example-ex-466045)
    - [Example: Golay Code in an R-Module](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/subspace-quotient-homomorphism.md#example-ex-1f57d1)
  - [Construction of Quotient Vector Spaces](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/subspace-quotient-homomorphism.md#construction-of-quotient-vector-spaces)
    - [`quo<V | L>: ModTupFld, List → ModTupFld, Map`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/subspace-quotient-homomorphism.md#constructor-constructor-quo-modtupfld-list-modtupfld-map)
    - [`V / U: ModTupFld, ModTupFld → ModTupFld, Map`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/subspace-quotient-homomorphism.md#operation-op-div-modtupfld-modtupfld)
    - [Example: Quotient by the Golay Code](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/subspace-quotient-homomorphism.md#example-ex-4d668d)
    - [Example: Golay Quotient as a Complement](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/subspace-quotient-homomorphism.md#example-ex-e0a05b)
    - [Example: Quotient of a Rational Matrix Space](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/subspace-quotient-homomorphism.md#example-ex-aceeb2)
- [Changing the Coefficient Field](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/modification-coefficient-field.md)
  - [`ExtendField(V, L): ModTupFld, Fld → ModTupFld, MapHom`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/modification-coefficient-field.md#function-extendfield-modtupfld-fld)
  - [`RestrictField(V, L): ModTupFld, Fld → ModTupFld, MapHom`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/modification-coefficient-field.md#function-restrictfield-modtupfld-fld)
  - [`VectorSpace(V, F): ModTupFld, Fld → ModTupFld, Map`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/modification-coefficient-field.md#function-vectorspace-modtupfld-fld)
  - [`KSpace(V, F): ModTupFld, Fld → ModTupFld, Map`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/modification-coefficient-field.md#function-kspace-modtupfld-fld)
  - [`KMatrixSpace(V, F): ModTupFld, Fld → ModTupFld, Map`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/modification-coefficient-field.md#function-kmatrixspace-modtupfld-fld)
  - [`KModule(V, F): ModTupFld, Fld → ModTupFld, Map`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/modification-coefficient-field.md#function-kmodule-modtupfld-fld)
- [Basic Operations](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/operation.md)
  - [Accessing Vector Space Invariants](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/operation.md#accessing-vector-space-invariants)
    - [`V . i: ModTupFld, RngIntElt → ModTupFldElt`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/operation.md#operation-operation-modtupfld-rngintelt-modtupfldelt)
    - [`CoefficientField(V): ModTupFld → Fld`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/operation.md#function-coefficientfield-modtupfld)
    - [`BaseField(V): ModTupFld → Fld`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/operation.md#function-basefield-modtupfld)
    - [`Degree(V): ModTupFld → RngIntElt`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/operation.md#function-degree-modtupfld)
    - [`Degree(u): ModTupFldElt → RngIntElt`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/operation.md#function-degree-modtupfldelt)
    - [`Dimension(V): ModTupFld → RngIntElt`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/operation.md#function-dimension-modtupfld)
    - [`Generators(V): ModTupFld → { ModElt}`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/operation.md#function-generators-modtupfld)
    - [`NumberOfGenerators(M): ModTupFld → RngIntElt`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/operation.md#function-numberofgenerators-modtupfld)
    - [`Ngens(M): ModTupFld → RngIntElt`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/operation.md#function-ngens-modtupfld)
    - [`OverDimension(V): ModTupFld → RngIntElt`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/operation.md#function-overdimension-modtupfld)
    - [`OverDimension(u): ModTupFldElt → RngIntElt`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/operation.md#function-overdimension-modtupfldelt)
    - [`Generic(V): ModFld → ModFld`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/operation.md#function-generic-modfld)
    - [`Parent(V): ModFld → SetPow`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/operation.md#function-parent-modfld)
  - [Membership and Equality](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/operation.md#membership-and-equality)
    - [`v in V: ModTupFldElt, ModTupFld → BoolElt`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/operation.md#operation-op-in-modtupfldelt-modtupfld)
    - [`v notin V: ModTupFldElt, ModTupFld → BoolElt`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/operation.md#operation-op-notin-modtupfldelt-modtupfld)
    - [`U subset V: ModTupFld, ModTupFld → BoolElt`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/operation.md#operation-op-subset-modtupfld-modtupfld)
    - [`U notsubset V: ModTupFld, ModTupFld → BoolElt`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/operation.md#operation-operation-notsubset-modtupfld-modtupfld-boolelt)
    - [`U eq V: ModTupFld, ModTupFld → BoolElt`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/operation.md#operation-op-eq-modtupfld-modtupfld)
    - [`U ne V: ModTupFld, ModTupFld → BoolElt`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/operation.md#operation-op-ne-modtupfld-modtupfld)
  - [Operations on Subspaces](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/operation.md#operations-on-subspaces)
    - [`U + V: ModTupFld, ModTupFld → ModTupFld`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/operation.md#operation-op-plus-modtupfld-modtupfld)
    - [`U meet V: ModTupFld, ModTupFld → ModTupFld`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/operation.md#operation-op-meet-modtupfld-modtupfld)
    - [`U meet:= V: ModTupFld, ModTupFld → ModTupFld`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/operation.md#operation-operation-meet-modtupfld-modtupfld-modtupfld)
    - [`&meet S: [ ModTupFld ] → ModTupFld`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/operation.md#operation-operation-meet-modtupfld-modtupfld)
    - [`TensorProduct(U, V): ModTupFld, ModTupFld → FldElt`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/operation.md#function-tensorproduct-modtupfld-modtupfld)
    - [`Complement(V, U): ModTupFld, ModTupFld → ModTupFld`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/operation.md#function-complement-modtupfld-modtupfld)
    - [`Transversal(V, U): ModTupFld, ModTupFld → { ModTupFldELt}`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/operation.md#function-transversal-modtupfld-modtupfld)
- [Reducing Vectors Relative to a Subspace](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/reducing-vectors.md)
  - [`ReduceVector(W, v): ModTupRng, ModTupRngElt → ModTupRngElt`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/reducing-vectors.md#function-reducevector-modtuprng-modtuprngelt)
  - [`ReduceVector(W, ~v): ModTupRng, ModTupRngElt`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/reducing-vectors.md#procedure-reducevector-modtuprng-modtuprngelt-2)
  - [`DecomposeVector(U, v): ModTupRng, ModTupRngElt → ModTupRngElt, ModTupRngElt`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/reducing-vectors.md#function-decomposevector-modtuprng-modtuprngelt)
- [Bases](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/basis.md)
  - [`VectorSpaceWithBasis(Q): [ModTupFldElt] → ModTupFld`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/basis.md#function-vectorspacewithbasis-modtupfldelt)
  - [`VectorSpaceWithBasis(a): AlgMatElt → ModTupFld`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/basis.md#function-vectorspacewithbasis-algmatelt)
  - [`VectorSpaceWithBasis(a): ModMatFldElt → ModTupFld`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/basis.md#function-vectorspacewithbasis-modmatfldelt)
  - [`KSpaceWithBasis(Q): [ModTupFldElt] → ModTupFld`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/basis.md#function-kspacewithbasis-modtupfldelt)
  - [`KSpaceWithBasis(a): AlgMatElt → ModTupFld`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/basis.md#function-kspacewithbasis-algmatelt)
  - [`KSpaceWithBasis(a): ModMatFldElt → ModTupFld`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/basis.md#function-kspacewithbasis-modmatfldelt)
  - [`KModuleWithBasis(Q): [ModTupFldElt] → ModTupFld`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/basis.md#function-kmodulewithbasis-modtupfldelt)
  - [`Basis(V): ModTupFld → [ModTupFldElt]`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/basis.md#function-basis-modtupfld)
  - [`BasisElement(V, i): ModTupFld, RngIntElt → ModTupFldElt`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/basis.md#function-basiselement-modtupfld-rngintelt)
  - [`BasisMatrix(V): ModTupFld → ModMatElt`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/basis.md#function-basismatrix-modtupfld)
  - [`Coordinates(V, v): ModTupFld, ModTupFldElt → [FldElt]`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/basis.md#function-coordinates-modtupfld-modtupfldelt)
  - [`Dimension(V): ModTupFld → RngIntElt`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/basis.md#function-dimension-modtupfld-2)
  - [`ExtendBasis(Q, U): [ModTupFldElt], ModTupFld → [ModTupFldElt]`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/basis.md#function-extendbasis-modtupfldelt-modtupfld)
  - [`ExtendBasis(U, V): ModTupFld, ModTupFld → [ModTupFldElt]`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/basis.md#function-extendbasis-modtupfld-modtupfld)
  - [`IsIndependent(S): { ModTupFldElt} → BoolElt`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/basis.md#function-isindependent-modtupfldelt)
  - [`IsIndependent(Q): [ ModTupFldElt ] → BoolElt`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/basis.md#function-isindependent-modtupfldelt-2)
  - [Example: Bases of the Ternary Golay Code](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/basis.md#example-ex-a4fb0c)
- [Operations with Linear Transformations](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/linear-transformation.md)
  - [`v * a: ModTupFldElt, ModMatFldElt → ModTupFldElt`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/linear-transformation.md#operation-op-times-modtupfldelt-modmatfldelt)
  - [`a(v): ModMatFldElt, ModTupFldElt → ModTupFldElt`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/linear-transformation.md#literal-a-modmatfldelt-modtupfldelt)
  - [`a * b: ModMatRngElt, ModMatRngElt → ModMatRngElt`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/linear-transformation.md#operation-op-times-modmatrngelt-modmatrngelt)
  - [`Domain(a): ModMatRngElt → ModTupRng`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/linear-transformation.md#function-domain-modmatrngelt)
  - [`Codomain(a): ModMatRngElt → ModTupRng`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/linear-transformation.md#function-codomain-modmatrngelt)
  - [`Image(a): ModMatRngElt → ModTupRng, Map, Map`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/linear-transformation.md#function-image-modmatrngelt)
  - [`Rank(a): ModMatRngElt → RngIntElt`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/linear-transformation.md#function-rank-modmatrngelt)
  - [`Kernel(a): ModMatRngElt → ModTupFld, Map`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/linear-transformation.md#function-kernel-modmatrngelt)
  - [`NullSpace(a): ModMatRngElt → ModTupFld, Map`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/linear-transformation.md#function-nullspace-modmatrngelt)
  - [`Cokernel(a): ModMatRngElt → ModTupFld, Map`](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/linear-transformation.md#function-cokernel-modmatrngelt)
  - [Example: Operations on Linear Transformations](https://docs.magma-maths.org/v2.30-1/MatricesLinearAlgebra/VectorSpaces/linear-transformation.md#example-ex-135cf0)
