pub trait ExtendedDensePolynomial<F: Field> {
    // Required methods
    fn scale(&self, elm: F) -> Self;
    fn shiftr(&self, size: usize) -> Self;
    fn eval_polynomial(coeffs: &[F], x: F) -> F;
    fn to_chunked_polynomial(
        &self,
        num_chunks: usize,
        size: usize
    ) -> ChunkedPolynomial<F>;
}
Expand description

An extension for the [DensePolynomial] type.

Required Methods§

source

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

This function “scales” (multiplies all the coefficients of) a polynomial with a scalar.

source

fn shiftr(&self, size: usize) -> Self

Shifts all the coefficients to the right.

source

fn eval_polynomial(coeffs: &[F], x: F) -> F

eval_polynomial(coeffs, x) evaluates a polynomial given its coefficients coeffs and a point x.

source

fn to_chunked_polynomial( &self, num_chunks: usize, size: usize ) -> ChunkedPolynomial<F>

Convert a polynomial into chunks. Implementors must ensure that the result contains exactly num_chunks.

Implementations on Foreign Types§

source§

impl<F: Field> ExtendedDensePolynomial<F> for DensePolynomial<F>

source§

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

source§

fn shiftr(&self, size: usize) -> Self

source§

fn eval_polynomial(coeffs: &[F], x: F) -> F

source§

fn to_chunked_polynomial( &self, num_chunks: usize, chunk_size: usize ) -> ChunkedPolynomial<F>

Implementors§