gfprimfd
R2026bFind primitive polynomials for Galois field
Syntax
Description
Examples
Input Arguments
Output Arguments
Tips
This function performs computations in GF(
pm), wherepis a prime number. To work in GF(2m), use theprimpolyfunction. For details, see Finding Primitive Polynomials in Primitive Polynomials and Element Representations.
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.
If
m=1andpol= [1 1].If
m>1, the outputpoldepends on the argumentoptas shown in the table:optSignificance of polFormat 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
Version History
Introduced before R2006a