Trait ExtendedEvaluations

Source
pub trait ExtendedEvaluations<F: FftField> {
    // Required methods
    fn scale(&self, elm: F) -> Self;
    fn square(&self) -> Self;
    fn pow(&self, pow: usize) -> Self;
    fn shift(&self, len: usize) -> Self;
}
Expand description

An extension for the [Evaluations] type.

Required Methods§

Source

fn scale(&self, elm: F) -> Self

This function “scales” (multiplies) a polynomial with a scalar It is implemented to have the desired functionality for DensePolynomial

Source

fn square(&self) -> Self

Square each evaluation

Source

fn pow(&self, pow: usize) -> Self

Raise each evaluation to some power pow

Source

fn shift(&self, len: usize) -> Self

Utility function for shifting poly along domain coordinate

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<F: FftField> ExtendedEvaluations<F> for Evaluations<F, Radix2EvaluationDomain<F>>

Source§

fn scale(&self, elm: F) -> Self

Source§

fn square(&self) -> Self

Source§

fn pow(&self, pow: usize) -> Self

Source§

fn shift(&self, len: usize) -> Self

Implementors§