Generator polynomial of Reed-Solomon code
returns the narrow-sense generator polynomial of an
[genpoly
= rsgenpoly(N
,K
)N
,K
] Reed-Solomon code. The output
genpoly
is a Galois field array that represents the coefficients of
the generator polynomial in order of descending powers. A narrow-sense BCH code is a BCH
code with B
= 1. Here, the narrow-sense generator polynomial is
(X – α1)(X – α2)...(X – αN
–K
),
where α is a root of the default primitive polynomial for the field
GF(N+1
). For additional information, see Narrow-Sense
BCH Codes and Reed-Solomon Codes.
Valid values for N
=
2M – 1, where M is an
integer in the range [3,16]. The maximum allowable value of N
=
216 – 1 = 65,535.
Valid values for K
= [1,N
– 1].