gftuple
Simplify 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 second input argument. The second argument is described below.
gftuple uses recursive callbacks to determine the exponential
format.
returns the simplest polynomial format of the elements that tp = gftuple(a,m)a
represents, where the kth row of tp corresponds to
the kth row of a. The formats are relative to a
root of the default primitive polynomial for
GF(2m), where m is a
positive integer.
Note
This function performs computations in
GF(pm), where p
is prime. To perform equivalent computations in
GF(2m), apply the
.^ operator and the log function to Galois
arrays. For more information, see Example: Exponentiation and Example: Elementwise Logarithm.
is the same as the syntax above, except that tp = gftuple(a,prim_poly)prim_poly is a polynomial character vector or a row
vector that lists the coefficients of a degree m primitive polynomial
for GF(2m) in order of ascending exponents.
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
Version History
Introduced before R2006a