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

field -- the field of a code

Description

Given a code C, returns the field (or ring) that contains 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 : field C

o3 = F

o3 : GaloisField

Ways to use field:

  • field(LinearCode)

For the programmer

The object field is a method function.


The source of this document is in CodingTheory.m2:4157:0.