gfprimfd
Find primitive polynomials for Galois field
Syntax
Description
searches for one or more primitive polynomials for
GF(pol = gfprimfd(m,opt,p) pm).
If
m=1andpol= [1 1].If
m>1, the outputpoldepends on the argumentoptas shown in the table:opt Significance of pol Format of pol 'min'One primitive polynomial for GF( pm) having the smallest possible number of nonzero termsThe row vector representing the polynomial 'max'One primitive polynomial for GF( pm) having the greatest possible number of nonzero termsThe row vector representing the polynomial 'all'All primitive polynomials for GF( pm)A matrix, each row of which represents one such polynomial A positive integer All primitive polynomials for GF( pm) that haveoptnonzero termsA matrix, each row of which represents one such polynomial
Note
This function performs computations in GF(pm), where p is
prime. To work in GF(2m), use the primpoly
function. For details, see Finding Primitive Polynomials in Primitive Polynomials and Element Representations.
Examples
Input Arguments
Output Arguments
Algorithms
gfprimfd tests for primitivity using gfprimck. If opt is 'min',
'max', or omitted, polynomials are constructed by converting decimal
integers to base p. Based on the decimal ordering,
gfprimfd returns the first polynomial it finds that satisfies the
appropriate conditions.
Version History
Introduced before R2006a