---
title: "Structure Constant Algebras"
canonical: "https://docs.magma-maths.org/v2.30-1/Algebras/StructureConstantAlgebras/index-structure-constant-algebras.html"
source: "https://docs.magma-maths.org/v2.30-1/Algebras/StructureConstantAlgebras/index-structure-constant-algebras.md"
part: "Algebras"
chapter: "Structure Constant 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"}
prev: {"title": "Operations on Elements of an Algebra", "source": "https://docs.magma-maths.org/v2.30-1/Algebras/IntroductionToAlgebras/ops-2.md"}
next: {"title": "Introduction", "source": "https://docs.magma-maths.org/v2.30-1/Algebras/StructureConstantAlgebras/introduction.md"}
---

# Structure Constant Algebras

- [Introduction](https://docs.magma-maths.org/v2.30-1/Algebras/StructureConstantAlgebras/introduction.md)
- [Construction of Structure Constant Algebras and Elements](https://docs.magma-maths.org/v2.30-1/Algebras/StructureConstantAlgebras/creation.md)
  - [Construction of a Structure Constant Algebra](https://docs.magma-maths.org/v2.30-1/Algebras/StructureConstantAlgebras/creation.md#construction-of-a-structure-constant-algebra)
    - [`Algebra< R, n | Q : parameters >: Rng, RngIntElt, SeqEnum → AlgGen`](https://docs.magma-maths.org/v2.30-1/Algebras/StructureConstantAlgebras/creation.md#constructor-constructor-algebra-rng-rngintelt-seqenum-alggen)
    - [`Algebra< M | Q : parameters >: ModTupRng, SeqEnum → AlgGen`](https://docs.magma-maths.org/v2.30-1/Algebras/StructureConstantAlgebras/creation.md#constructor-constructor-algebra-modtuprng-seqenum-alggen)
    - [`Algebra< R, n | T : parameters >: Rng, RngIntElt, SeqEnum → AlgGen`](https://docs.magma-maths.org/v2.30-1/Algebras/StructureConstantAlgebras/creation.md#constructor-constructor-algebra-rng-rngintelt-seqenum-alggen-2)
    - [`ChangeBasis(A, B): AlgGen, {[AlgGenElt]} → AlgGen`](https://docs.magma-maths.org/v2.30-1/Algebras/StructureConstantAlgebras/creation.md#function-changebasis-alggen-alggenelt)
    - [`ChangeBasis(A, B): AlgGen, {[ModTupFldElt]} → AlgGen`](https://docs.magma-maths.org/v2.30-1/Algebras/StructureConstantAlgebras/creation.md#function-changebasis-alggen-modtupfldelt)
    - [`ChangeBasis(A, B): AlgGen, Mtrx → AlgGen`](https://docs.magma-maths.org/v2.30-1/Algebras/StructureConstantAlgebras/creation.md#function-changebasis-alggen-mtrx)
  - [Construction of Elements of a Structure Constant Algebra](https://docs.magma-maths.org/v2.30-1/Algebras/StructureConstantAlgebras/creation.md#construction-of-elements-of-a-structure-constant-algebra)
    - [`elt< A | r₁, r₂, ..., rₙ >: AlgGen, RngElt, RngElt, ..., RngElt → AlgGenElt`](https://docs.magma-maths.org/v2.30-1/Algebras/StructureConstantAlgebras/creation.md#constructor-constructor-elt-alggen-rngelt-rngelt-rngelt-alggenelt)
    - [`A ! Q: AlgGen, SeqEnum[RngElt] → AlgGenElt`](https://docs.magma-maths.org/v2.30-1/Algebras/StructureConstantAlgebras/creation.md#operation-op-alggen-seqenum-rngelt)
    - [`BasisProduct(A, i, j): AlgGen, RngIntElt, RngIntElt → AlgGenElt`](https://docs.magma-maths.org/v2.30-1/Algebras/StructureConstantAlgebras/creation.md#function-basisproduct-alggen-rngintelt-rngintelt)
    - [`BasisProducts(A): AlgGen → SeqEnum`](https://docs.magma-maths.org/v2.30-1/Algebras/StructureConstantAlgebras/creation.md#function-basisproducts-alggen)
- [Operations on Structure Constant Algebras and Elements](https://docs.magma-maths.org/v2.30-1/Algebras/StructureConstantAlgebras/creation-2.md)
  - [Operations on Structure Constant Algebras](https://docs.magma-maths.org/v2.30-1/Algebras/StructureConstantAlgebras/creation-2.md#operations-on-structure-constant-algebras)
    - [`IsCommutative(A): AlgGen → BoolElt`](https://docs.magma-maths.org/v2.30-1/Algebras/StructureConstantAlgebras/creation-2.md#function-iscommutative-alggen)
    - [`IsAssociative(A): AlgGen → BoolElt`](https://docs.magma-maths.org/v2.30-1/Algebras/StructureConstantAlgebras/creation-2.md#function-isassociative-alggen)
    - [`IsLie(A): AlgGen → BoolElt`](https://docs.magma-maths.org/v2.30-1/Algebras/StructureConstantAlgebras/creation-2.md#function-islie-alggen)
    - [`DirectSum(A, B): AlgGen, AlgGen → AlgGen`](https://docs.magma-maths.org/v2.30-1/Algebras/StructureConstantAlgebras/creation-2.md#function-directsum-alggen-alggen)
    - [Example: Jordan Algebra from Structure Constants](https://docs.magma-maths.org/v2.30-1/Algebras/StructureConstantAlgebras/creation-2.md#example-ex-381ebc)
  - [Indexing Elements](https://docs.magma-maths.org/v2.30-1/Algebras/StructureConstantAlgebras/creation-2.md#indexing-elements)
    - [`a[i]: AlgGenElt, RngIntElt → RngElt`](https://docs.magma-maths.org/v2.30-1/Algebras/StructureConstantAlgebras/creation-2.md#indexed-indexed-a-alggenelt-rngintelt-rngelt)
    - [`a[i] := r: AlgGenElt, RngIntElt, RngElt → AlgGenElt`](https://docs.magma-maths.org/v2.30-1/Algebras/StructureConstantAlgebras/creation-2.md#literal-literal-a-i-r-alggenelt-rngintelt-rngelt-alggenelt)
  - [The Module Structure of a Structure Constant Algebra](https://docs.magma-maths.org/v2.30-1/Algebras/StructureConstantAlgebras/creation-2.md#the-module-structure-of-a-structure-constant-algebra)
    - [`Module(A): AlgGen → ModTupRng`](https://docs.magma-maths.org/v2.30-1/Algebras/StructureConstantAlgebras/creation-2.md#function-module-alggen)
    - [`Degree(A): AlgGen → RngIntElt`](https://docs.magma-maths.org/v2.30-1/Algebras/StructureConstantAlgebras/creation-2.md#function-degree-alggen)
    - [`Degree(a): AlgGenElt → RngIntElt`](https://docs.magma-maths.org/v2.30-1/Algebras/StructureConstantAlgebras/creation-2.md#function-degree-alggenelt)
    - [`ElementToSequence(a): AlgGenElt → SeqEnum`](https://docs.magma-maths.org/v2.30-1/Algebras/StructureConstantAlgebras/creation-2.md#function-elementtosequence-alggenelt)
    - [`Eltseq(a): AlgGenElt → SeqEnum`](https://docs.magma-maths.org/v2.30-1/Algebras/StructureConstantAlgebras/creation-2.md#function-eltseq-alggenelt)
    - [`Coordinates(S, a): AlgGen, AlgGenElt → SeqEnum`](https://docs.magma-maths.org/v2.30-1/Algebras/StructureConstantAlgebras/creation-2.md#function-coordinates-alggen-alggenelt)
    - [`InnerProduct(a, b): AlgGenElt, AlgGenElt → RngElt`](https://docs.magma-maths.org/v2.30-1/Algebras/StructureConstantAlgebras/creation-2.md#function-innerproduct-alggenelt-alggenelt)
    - [`Support(a): AlgGenElt → SetEnum`](https://docs.magma-maths.org/v2.30-1/Algebras/StructureConstantAlgebras/creation-2.md#function-support-alggenelt)
  - [Homomorphisms](https://docs.magma-maths.org/v2.30-1/Algebras/StructureConstantAlgebras/creation-2.md#homomorphisms)
    - [`hom< A -> B | Q >: AlgGen, AlgGen, [ AlgGenElt ] → Map`](https://docs.magma-maths.org/v2.30-1/Algebras/StructureConstantAlgebras/creation-2.md#constructor-constructor-hom-alggen-alggen-alggenelt-map)
    - [`hom< A -> B | Q >: AlgGen, TupMod, [ TupModElt ] → Map`](https://docs.magma-maths.org/v2.30-1/Algebras/StructureConstantAlgebras/creation-2.md#constructor-constructor-hom-alggen-tupmod-tupmodelt-map)
    - [Example: Real Cayley Algebra](https://docs.magma-maths.org/v2.30-1/Algebras/StructureConstantAlgebras/creation-2.md#example-ex-fafa2a)
