next | previous | forward | backward | up | top | index | toc | packages | Macaulay2 website
CodingTheory > LinearCode > linearCode > zeroCode

zeroCode -- zero code

Synopsis

Description

Constructs the linear code of length n over F whose only codeword is the zero codeword.

i1 : C=zeroCode(GF(4),7)

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

o1 : LinearCode
i2 : C.GeneratorMatrix

o2 = 0

              1        7
o2 : Matrix ZZ  <--- ZZ

Ways to use zeroCode :

For the programmer

The object zeroCode is a method function.