commpy.channelcoding.cyclic_code_genpoly

cyclic_code_genpoly(n, k)

Generate all possible generator polynomials for a (n, k)-cyclic code.

Parameters:
  • n (int) – Code blocklength of the cyclic code.
  • k (int) – Information blocklength of the cyclic code.
Returns:

poly_list – A list of generator polynomials (represented as integers) for the (n, k)-cyclic code.

Return type:

1D ndarray of ints