pub struct LabeledPolynomialWithBasis<'a, F: PrimeField> {
pub info: PolynomialInfo,
pub polynomial: Vec<(F, PolynomialWithBasis<'a, F>)>,
}
Fields§
§info: PolynomialInfo
§polynomial: Vec<(F, PolynomialWithBasis<'a, F>)>
Implementations§
source§impl<'a, F: PrimeField> LabeledPolynomialWithBasis<'a, F>
impl<'a, F: PrimeField> LabeledPolynomialWithBasis<'a, F>
sourcepub fn new_monomial_basis(
label: PolynomialLabel,
polynomial: &'a Polynomial<'_, F>,
degree_bound: Option<usize>,
hiding_bound: Option<usize>
) -> Self
pub fn new_monomial_basis( label: PolynomialLabel, polynomial: &'a Polynomial<'_, F>, degree_bound: Option<usize>, hiding_bound: Option<usize> ) -> Self
Construct a new labeled polynomial by consuming polynomial
.
sourcepub fn new_linear_combination(
label: PolynomialLabel,
polynomial: Vec<(F, PolynomialWithBasis<'a, F>)>,
hiding_bound: Option<usize>
) -> Self
pub fn new_linear_combination( label: PolynomialLabel, polynomial: Vec<(F, PolynomialWithBasis<'a, F>)>, hiding_bound: Option<usize> ) -> Self
Construct a new labeled polynomial by consuming polynomial
.
pub fn new_lagrange_basis( label: PolynomialLabel, polynomial: EvaluationsOnDomain<F>, hiding_bound: Option<usize> ) -> Self
pub fn new_lagrange_basis_ref( label: PolynomialLabel, polynomial: &'a EvaluationsOnDomain<F>, hiding_bound: Option<usize> ) -> Self
sourcepub fn info(&self) -> &PolynomialInfo
pub fn info(&self) -> &PolynomialInfo
Return the information about the label, degree bound, and hiding bound of self
.
pub fn degree(&self) -> usize
sourcepub fn sum(&self) -> impl Iterator<Item = PolynomialWithBasis<'a, F>>
pub fn sum(&self) -> impl Iterator<Item = PolynomialWithBasis<'a, F>>
Compute a linear combination of the terms in self.polynomial
, producing an iterator
over polynomials of the same time.
sourcepub fn degree_bound(&self) -> Option<usize>
pub fn degree_bound(&self) -> Option<usize>
Retrieve the degree bound in self
.
sourcepub fn hiding_bound(&self) -> Option<usize>
pub fn hiding_bound(&self) -> Option<usize>
Retrieve the hiding bound for the polynomial in self
.
Trait Implementations§
source§impl<'a, F: Clone + PrimeField> Clone for LabeledPolynomialWithBasis<'a, F>
impl<'a, F: Clone + PrimeField> Clone for LabeledPolynomialWithBasis<'a, F>
source§fn clone(&self) -> LabeledPolynomialWithBasis<'a, F>
fn clone(&self) -> LabeledPolynomialWithBasis<'a, F>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a, F: Debug + PrimeField> Debug for LabeledPolynomialWithBasis<'a, F>
impl<'a, F: Debug + PrimeField> Debug for LabeledPolynomialWithBasis<'a, F>
source§impl<'a, F: PrimeField> From<&'a LabeledPolynomial<F>> for LabeledPolynomialWithBasis<'a, F>
impl<'a, F: PrimeField> From<&'a LabeledPolynomial<F>> for LabeledPolynomialWithBasis<'a, F>
source§fn from(other: &'a LabeledPolynomial<F>) -> Self
fn from(other: &'a LabeledPolynomial<F>) -> Self
Converts to this type from the input type.
source§impl<'a, F: PrimeField> From<LabeledPolynomial<F>> for LabeledPolynomialWithBasis<'a, F>
impl<'a, F: PrimeField> From<LabeledPolynomial<F>> for LabeledPolynomialWithBasis<'a, F>
source§fn from(other: LabeledPolynomial<F>) -> Self
fn from(other: LabeledPolynomial<F>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a, F> RefUnwindSafe for LabeledPolynomialWithBasis<'a, F>where F: RefUnwindSafe,
impl<'a, F> Send for LabeledPolynomialWithBasis<'a, F>
impl<'a, F> Sync for LabeledPolynomialWithBasis<'a, F>
impl<'a, F> Unpin for LabeledPolynomialWithBasis<'a, F>where F: Unpin,
impl<'a, F> UnwindSafe for LabeledPolynomialWithBasis<'a, F>where F: UnwindSafe + RefUnwindSafe,
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