This function returns the cyclic generator polynomials of the code [n,k]. By default the polynomial with the smallest weight is returned. However this behavior can be overridden with the opt flag. Valid values of opt are:
"all"
Returns all of the polynomials of the code [n,k]
"min"
Returns the polynomial of minimum weight of the code [n,k]
"max"
Returns the polynomial of the maximum weight of the code [n,k]
Returns the polynomials having exactly the weight l
The polynomials are returns as row-vectors in the variable y. Each
row of y represents a polynomial with the least-significant term
first. The polynomials can be returned with an integer representation
if rep is "integer"
. The default behavior is given if rep
is "polynomial"
.
See also: gf, isprimitive.
Package: communications