Expand description
Traits for arithmetic on UnsignedPolynomials.
Modules§
- canonicalize_
unit - Implementations of
CanonicalizeUnitandCanonicalizeUnitAssign, which bring a polynomial into canonical unit form. - compose_
power_ of_ x - Implementations of
ComposePowerOfXandComposePowerOfXAssign, for substituting a power of the variable into a polynomial. - content
- Implementations of
Content,PrimitivePart,PrimitivePartAssign, andContentAndPrimitivePart, which compute the GCD of a polynomial’s coefficients and the polynomial divided by it. - deflate_
power_ of_ x - Implementations of
DeflatePowerOfXandDeflatePowerOfXAssign, for undoing the substitution of a power of the variable into a polynomial. - div_
power_ of_ x - Implementations of
DivPowerOfXandDivPowerOfXAssign, for dividing a polynomial by a power of its variable and discarding the remainder. - evaluate
- Implementations of
ModEvaluateandModPowerOf2Evaluate, which evaluate a polynomial at a value modulo a value or a power of 2. - exponent_
gcd - An implementation of
ExponentGcd, the greatest common divisor of the exponents at which a polynomial has nonzero coefficients. - height
- An implementation of
Height, the largest of a polynomial’s coefficients. - is_unit
- An implementation of
IsUnit, a trait for determining whether a number is a unit of its ring. - mod_add
- Implementations of
ModAddandModAddAssign, for adding two polynomials modulo a value. - mod_
add_ truncated - Implementations of
ModAddTruncatedandModAddTruncatedAssign, for adding two polynomials modulo a value and keeping only their low coefficients. - mod_
derivative - Implementations of
ModDerivativeandModDerivativeAssign, for differentiating a polynomial modulo a number. - mod_
integral - Implementations of
ModIntegralandModIntegralAssign, for integrating a polynomial modulo a value. - mod_
is_ reduced - An implementation of
ModIsReduced, which checks whether every coefficient of a polynomial is less than a given modulus. - mod_
make_ monic - Implementations of
ModMakeMonicandModMakeMonicAssign, which make a polynomial monic modulo a value. - mod_mul
- Implementations of
ModMulandModMulAssign, for multiplying two polynomials modulo a value. - mod_
mul_ truncated - Implementations of
ModMulTruncatedandModMulTruncatedAssign, for multiplying two polynomials modulo a value and keeping the low coefficients of the product. - mod_neg
- Implementations of
ModNegandModNegAssign, which negate a polynomial modulo a number. - mod_
nth_ derivative - Implementations of
ModNthDerivativeandModNthDerivativeAssign, for differentiating a polynomial any number of times modulo a number. - mod_op
- Implementations of
Mod,ModAssign,RemandRemAssign, which reduce every coefficient of a polynomial modulo a number. - mod_pow
- Implementations of
ModPowandModPowAssign, for raising a polynomial to a power modulo a number. - mod_
pow_ truncated - Implementations of
ModPowTruncatedandModPowTruncatedAssign, for raising a polynomial to a power modulo a number and keeping only the low coefficients. - mod_
power_ of_ 2 - Implementations of
ModPowerOf2andModPowerOf2Assign, which reduce every coefficient of a polynomial modulo a power of 2. - mod_
power_ of_ 2_ add - Implementations of
ModPowerOf2AddandModPowerOf2AddAssign, for adding two polynomials modulo $2^k$. - mod_
power_ of_ 2_ add_ truncated - Implementations of
ModPowerOf2AddTruncatedandModPowerOf2AddTruncatedAssign, for adding two polynomials modulo $2^k$ and keeping only their low coefficients. - mod_
power_ of_ 2_ derivative - Implementations of
ModPowerOf2DerivativeandModPowerOf2DerivativeAssign, for differentiating a polynomial modulo a power of 2. - mod_
power_ of_ 2_ integral - Implementations of
ModPowerOf2IntegralandModPowerOf2IntegralAssign, for integrating a polynomial modulo $2^k$. - mod_
power_ of_ 2_ is_ reduced - An implementation of
ModPowerOf2IsReduced, which checks whether every coefficient of a polynomial is less than a given power of 2. - mod_
power_ of_ 2_ mul - Implementations of
ModPowerOf2MulandModPowerOf2MulAssign, for multiplying two polynomials modulo $2^k$. - mod_
power_ of_ 2_ mul_ truncated - Implementations of
ModPowerOf2MulTruncatedandModPowerOf2MulTruncatedAssign, for multiplying two polynomials modulo $2^k$ and keeping the low coefficients of the product. - mod_
power_ of_ 2_ neg - Implementations of
ModPowerOf2NegandModPowerOf2NegAssign, which negate a polynomial modulo a power of 2. - mod_
power_ of_ 2_ nth_ derivative - Implementations of
ModPowerOf2NthDerivativeandModPowerOf2NthDerivativeAssign, for differentiating a polynomial any number of times modulo a power of 2. - mod_
power_ of_ 2_ pow - Implementations of
ModPowerOf2PowandModPowerOf2PowAssign, for raising a polynomial to a power modulo a power of 2. - mod_
power_ of_ 2_ pow_ truncated - Implementations of
ModPowerOf2PowTruncatedandModPowerOf2PowTruncatedAssign, for raising a polynomial to a power modulo a power of 2 and keeping only the low coefficients. - mod_
power_ of_ 2_ shl - Implementations of
ModPowerOf2ShlandModPowerOf2ShlAssign, for left-shifting a polynomial modulo a power of 2. - mod_
power_ of_ 2_ square - Implementations of
ModPowerOf2SquareandModPowerOf2SquareAssign, for squaring a polynomial modulo $2^k$. - mod_
power_ of_ 2_ square_ truncated - Implementations of
ModPowerOf2SquareTruncatedandModPowerOf2SquareTruncatedAssign, for squaring a polynomial modulo $2^k$ and keeping the low coefficients of the square. - mod_
power_ of_ 2_ sub - Implementations of
ModPowerOf2SubandModPowerOf2SubAssign, for subtracting one polynomial from another modulo $2^k$. - mod_
power_ of_ 2_ sub_ truncated - Implementations of
ModPowerOf2SubTruncatedandModPowerOf2SubTruncatedAssign, for subtracting one polynomial from another modulo $2^k$ and keeping only their low coefficients. - mod_shl
- Implementations of
ModShlandModShlAssign, for left-shifting a polynomial modulo a number. - mod_
square - Implementations of
ModSquareandModSquareAssign, for squaring a polynomial modulo a value. - mod_
square_ truncated - Implementations of
ModSquareTruncatedandModSquareTruncatedAssign, for squaring a polynomial modulo a value and keeping the low coefficients of the square. - mod_sub
- Implementations of
ModSubandModSubAssign, for subtracting one polynomial from another modulo a value. - mod_
sub_ truncated - Implementations of
ModSubTruncatedandModSubTruncatedAssign, for subtracting one polynomial from another modulo a value and keeping only their low coefficients. - mul_
power_ of_ x - Implementations of
MulPowerOfXandMulPowerOfXAssign, for multiplying a polynomial by a power of its variable.