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

GeneratorMatrix -- gives the generator matrix of a linear code

Synopsis

Description

Given a linear code C, this symbol is used as a key for storing a generator matrix of C.

This symbol is provided by the package CodingTheory.

i1 : C = linearCode(GF(8,Variable => b), {{1,1,b,0,0},{0,b,b,1,0},{1,1,1,b,0}});
i2 : C.GeneratorMatrix

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

                  3           5
o2 : Matrix (GF 8)  <-- (GF 8)

For the programmer

The object GeneratorMatrix is a symbol.

Menu

Related function: