gftuple
R2026bSimplify or convert Galois field element formatting
Syntax
Description
gftuple serves to simplify the polynomial or exponential format
of Galois field elements, or to convert from one format to another. For an explanation of the
formats that gftuple uses, see Representing Elements of Galois Fields.
The format of an element of
GF(pm) is called
simplest if all exponents of the primitive element are
In the range [0, (
m– 1)] for the polynomial formatEither
-Inf, or in the range [0, (pm– 2)], for the exponential format
The exponential or polynomial formats mentioned above are all relative to a primitive
element specified by the input argument m.
gftuple uses recursive callbacks to determine the exponential
format.
is the same as tp = gftuple(a,prim_poly,p,prim_ck)tp = gftuple(a,prim_poly,p) except that
gftuple checks whether prim_poly represents a
polynomial that is indeed primitive. If not, then gftuple generates an
error and tp is not returned. The input argument
prim_ck can be any number or character vector; only its existence
matters.
Examples
Input Arguments
Output Arguments
Tips
This function performs computations in GF(
pm), where p is prime. To perform equivalent computations in GF(2m), apply the.^operator and thelogfunction to Galois arrays. For more information, see Example: Exponentiation and Example: Elementwise Logarithm.
Version History
Introduced before R2006a