-
galois.Poly(coeffs: ArrayLike, field: type[Array] | None =
None
, order: 'desc' | 'asc' ='desc'
) Creates a polynomial
over .The polynomial
with degree has coefficients in .- Parameters:¶
- coeffs: ArrayLike¶
The polynomial coefficients
.- field: type[Array] | None =
None
¶ The Galois field
the polynomial is over.None
(default): If the coefficients are anArray
, they won’t be modified. If the coefficients are not explicitly in a Galois field, they are assumed to be from and are converted usinggalois.GF2(coeffs)
.Array
subclass: The coefficients are explicitly converted to this Galois field usingfield(coeffs)
.
- order: 'desc' | 'asc' =
'desc'
¶ The interpretation of the coefficient degrees.
"desc"
(default): The first element ofcoeffs
is the highest degree coefficient, i.e. ."asc"
: The first element ofcoeffs
is the lowest degree coefficient, i.e. .