Macaulay2 » Documentation
Packages » CodingTheory » LinearCode » ambientSpace » alphabet
next | previous | forward | backward | up | index | toc

alphabet -- elements of the base ring of a code

Description

Given a linear code C, the function returns the list of all elements of the ring $R$, where $R$ is the ring containing the entries of the generator matrix of C.

i1 : F=GF(4, Variable=>a);
i2 : C=linearCode(matrix{{1,a,0},{0,1,a}});
i3 : alphabet(C)

o3 = {0, a, a + 1, 1}

o3 : List

Ways to use alphabet:

  • alphabet(LinearCode)

For the programmer

The object alphabet is a method function.


The source of this document is in /build/reproducible-path/macaulay2-1.25.05+ds/M2/Macaulay2/packages/CodingTheory.m2:3985:0.