Macaulay2 » Documentation
Packages » CodingTheory > ring(LinearCode)
next | previous | forward | backward | up | index | toc

ring(LinearCode) -- the ring of a code

Synopsis

Description

Given a code C, returns the ring that contains the entries of the generator matrix of C.

i1 : C = hammingCode(2, 3)

                                       7
o1 = LinearCode{AmbientModule => (GF 2)                                                                                   }
                BaseField => GF 2
                cache => CacheTable{}
                Code => image | 1 1 0 1 |
                              | 1 0 1 1 |
                              | 1 1 1 0 |
                              | 1 0 0 0 |
                              | 0 1 0 0 |
                              | 0 0 1 0 |
                              | 0 0 0 1 |
                GeneratorMatrix => | 1 1 1 1 0 0 0 |
                                   | 1 0 1 0 1 0 0 |
                                   | 0 1 1 0 0 1 0 |
                                   | 1 1 0 0 0 0 1 |
                Generators => {{1, 1, 1, 1, 0, 0, 0}, {1, 0, 1, 0, 1, 0, 0}, {0, 1, 1, 0, 0, 1, 0}, {1, 1, 0, 0, 0, 0, 1}}
                ParityCheckMatrix => | 1 1 1 1 0 0 0 |
                                     | 0 0 1 1 1 1 0 |
                                     | 0 1 0 1 0 1 1 |
                ParityCheckRows => {{1, 1, 1, 1, 0, 0, 0}, {0, 0, 1, 1, 1, 1, 0}, {0, 1, 0, 1, 0, 1, 1}}

o1 : LinearCode
i2 : ring(C)

o2 = GF 2

o2 : GaloisField

Ways to use this method: