struct ScaledChunkedPolynomial<F, P>(Vec<(F, P)>);Expand description
A formal sum of the form
s_0 * p_0 + ... s_n * p_n
where each s_i is a scalar and each p_i is a polynomial.
The parameter P is expected to be the coefficients of the polynomial
p_i, even though we could treat it as the evaluations.
This hypothesis is important if to_dense_polynomial is called.
Tuple Fields§
§0: Vec<(F, P)>Implementations§
Source§impl<F, P> ScaledChunkedPolynomial<F, P>
impl<F, P> ScaledChunkedPolynomial<F, P>
Source§impl<F: Field> ScaledChunkedPolynomial<F, &[F]>
impl<F: Field> ScaledChunkedPolynomial<F, &[F]>
Sourcefn to_dense_polynomial(&self) -> DensePolynomial<F>
fn to_dense_polynomial(&self) -> DensePolynomial<F>
Compute the resulting scaled polynomial.
Example:
Given the two polynomials 1 + 2X and 3 + 4X, and the scaling
factors 2 and 3, the result is the polynomial 11 + 16X.
2 * [1, 2] + 3 * [3, 4] = [2, 4] + [9, 12] = [11, 16]Trait Implementations§
Auto Trait Implementations§
impl<F, P> Freeze for ScaledChunkedPolynomial<F, P>
impl<F, P> RefUnwindSafe for ScaledChunkedPolynomial<F, P>where
F: RefUnwindSafe,
P: RefUnwindSafe,
impl<F, P> Send for ScaledChunkedPolynomial<F, P>
impl<F, P> Sync for ScaledChunkedPolynomial<F, P>
impl<F, P> Unpin for ScaledChunkedPolynomial<F, P>
impl<F, P> UnwindSafe for ScaledChunkedPolynomial<F, P>where
F: UnwindSafe,
P: UnwindSafe,
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