[−][src]Enum zkp_stark::RationalExpression
Variants
Constant(FieldElement)
Polynomial(DensePolynomial, Box<RationalExpression>)
Add(Box<RationalExpression>, Box<RationalExpression>)
Neg(Box<RationalExpression>)
Mul(Box<RationalExpression>, Box<RationalExpression>)
Inv(Box<RationalExpression>)
Exp(Box<RationalExpression>, usize)
Methods
impl RationalExpression
[src]
pub fn neg(&self) -> Self
[src]
pub fn inv(&self) -> Self
[src]
pub fn pow(&self, exponent: usize) -> Self
[src]
impl RationalExpression
[src]
pub fn degree(&self, trace_degree: usize) -> (usize, usize)
[src]
Numerator and denominator degree of the expression in X.
Calculates an upper bound. Cancelations may occur.
pub fn trace_degree(&self) -> (usize, usize)
[src]
pub fn evaluate(
&self,
x: &FieldElement,
trace: &dyn Fn(usize, isize) -> FieldElement
) -> FieldElement
[src]
&self,
x: &FieldElement,
trace: &dyn Fn(usize, isize) -> FieldElement
) -> FieldElement
Trait Implementations
impl Clone for RationalExpression
[src]
fn clone(&self) -> RationalExpression
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl From<i32> for RationalExpression
[src]
impl<'_> From<&'_ FieldElement> for RationalExpression
[src]
fn from(value: &FieldElement) -> Self
[src]
impl Add<RationalExpression> for RationalExpression
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, other: Self) -> Self
[src]
impl Sub<RationalExpression> for RationalExpression
[src]
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, other: Self) -> Self
[src]
impl Mul<RationalExpression> for RationalExpression
[src]
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, other: Self) -> Self
[src]
impl Div<RationalExpression> for RationalExpression
[src]
type Output = Self
The resulting type after applying the /
operator.
fn div(self, other: Self) -> Self
[src]
impl Debug for RationalExpression
[src]
impl Sum<RationalExpression> for RationalExpression
[src]
fn sum<I>(iter: I) -> Self where
I: Iterator<Item = RationalExpression>,
[src]
I: Iterator<Item = RationalExpression>,
Auto Trait Implementations
impl Send for RationalExpression
impl Unpin for RationalExpression
impl Sync for RationalExpression
impl UnwindSafe for RationalExpression
impl RefUnwindSafe for RationalExpression
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,