Main Content

gftable

Generate file to accelerate Galois field computations

Description

gftable(m,prim_poly) generates a file that can help accelerate computations in the field GF(2^m) given by the nondefault primitive polynomial prim_poly, which can be either a polynomial character vector or an integer.

Examples

Input Arguments

collapse all

Order of primitive polynomial, specified as a positive integer from 1 through 16. The function uses this value to calculate the distinct number of elements in the GF.

Data Types: double

Primitive polynomial, specified as one of these options:

  • Binary row vector — This vector specifies coefficients of prim_poly in the order of ascending powers.

  • Character vector or a string scalar — This value defines prim_poly in a textual representation. For more details, refer to polynomial character vector.

  • Positive integer — This value defines prim_poly in the range [(2m + 1), (2m+1 – 1)].

If prim_poly is not specified, see Default Primitive Polynomials for the list of default primitive polynomial used for each Galois field array GF(2m).

Data Types: double | char | string

Version History

Introduced before R2006a