주요 콘텐츠

gftable

R2026b

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. For more information, see Representation of Polynomials in Communications Toolbox

example

Examples

collapse all

Generate a mat-file containing data relating to a combination of field order and primitive polynomial.

Define variables for the order of the GF primitive polynomial and the primitive polynomial. Then use gftable to create userGftable.mat. If the m and prim_poly combination is already in the provided gftable.mat file the function returns a message noting that.

m = 3;
prim_poly = 13;
gftable(m,prim_poly);
This m and prim_poly are already in the MAT-file.

Input Arguments

collapse all

Field order, 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