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

repetitionCode -- repetition code

Description

Returns the repetition code over F of length n.

i1 : F = GF(2,3);
i2 : n=7;
i3 : C=repetitionCode(F,n);
i4 : C.ParityCheckMatrix

o4 = | 1 1 0 0 0 0 0 |
     | 1 0 1 0 0 0 0 |
     | 1 0 0 1 0 0 0 |
     | 1 0 0 0 1 0 0 |
     | 1 0 0 0 0 1 0 |
     | 1 0 0 0 0 0 1 |

             6      7
o4 : Matrix F  <-- F

Ways to use repetitionCode:

  • repetitionCode(GaloisField,ZZ)

For the programmer

The object repetitionCode is a method function.


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