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§
sourcefn scale(&self, elm: F) -> Self
fn scale(&self, elm: F) -> Self
This function “scales” (multiplies all the coefficients of) a polynomial with a scalar.
sourcefn eval_polynomial(coeffs: &[F], x: F) -> F
fn eval_polynomial(coeffs: &[F], x: F) -> F
eval_polynomial(coeffs, x)
evaluates a polynomial given its coefficients coeffs
and a point x
.
sourcefn to_chunked_polynomial(
&self,
num_chunks: usize,
size: usize
) -> ChunkedPolynomial<F>
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.