pub enum PolynomialInputTransform {
Identity,
Square,
SquareTimesInput,
ChebyshevT2,
ChebyshevT2TimesInput,
}Expand description
Input rewrite attached to a decomposed polynomial.
Polynomials with a known parity can be folded through x² (monomial basis)
or T₂(x) = 2x² - 1 (Chebyshev basis), halving the encoded degree. Odd
polynomials additionally factor out one copy of the original input.
Variants§
Identity
Evaluate the encoded polynomial directly on the input.
Square
Evaluate the encoded polynomial on x².
SquareTimesInput
Evaluate the encoded polynomial on x², then multiply by x.
ChebyshevT2
Evaluate the encoded polynomial on T₂(x).
ChebyshevT2TimesInput
Evaluate the encoded polynomial on T₂(x), then multiply by x.
Trait Implementations§
Source§impl Clone for PolynomialInputTransform
impl Clone for PolynomialInputTransform
Source§fn clone(&self) -> PolynomialInputTransform
fn clone(&self) -> PolynomialInputTransform
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PolynomialInputTransform
Source§impl Debug for PolynomialInputTransform
impl Debug for PolynomialInputTransform
Source§impl Default for PolynomialInputTransform
impl Default for PolynomialInputTransform
Source§fn default() -> PolynomialInputTransform
fn default() -> PolynomialInputTransform
Returns the “default value” for a type. Read more
impl Eq for PolynomialInputTransform
Source§impl PartialEq for PolynomialInputTransform
impl PartialEq for PolynomialInputTransform
impl StructuralPartialEq for PolynomialInputTransform
Auto Trait Implementations§
impl Freeze for PolynomialInputTransform
impl RefUnwindSafe for PolynomialInputTransform
impl Send for PolynomialInputTransform
impl Sync for PolynomialInputTransform
impl Unpin for PolynomialInputTransform
impl UnsafeUnpin for PolynomialInputTransform
impl UnwindSafe for PolynomialInputTransform
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more