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

repetitionCode -- repetition code

Synopsis

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 :

For the programmer

The object repetitionCode is a method function.