Macaulay2 » Documentation
Packages » CodingTheory » LinearCode » linearCode » hammingCode
next | previous | forward | backward | up | index | toc

hammingCode -- generates a Hamming code

Description

Returns the Hamming code $C$ over GF(q) whose dual has dimension s.

i1 : C1 = hammingCode(2,3);
i2 : C1.ParityCheckMatrix

o2 = | 1 1 1 1 0 0 0 |
     | 0 0 1 1 1 1 0 |
     | 0 1 0 1 0 1 1 |

                  3           7
o2 : Matrix (GF 2)  <-- (GF 2)

Ways to use hammingCode:

  • hammingCode(ZZ,ZZ)

For the programmer

The object hammingCode is a method function.


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