[−][src]Struct snarkos_polycommit::data_structures::LabeledPolynomial
A polynomial along with information about its degree bound (if any), and the maximum number of queries that will be made to it. This latter number determines the amount of protection that will be provided to a commitment for this polynomial.
Implementations
impl<'a, F: Field> LabeledPolynomial<'a, F>
[src]
pub fn new_owned(
label: PolynomialLabel,
polynomial: Polynomial<F>,
degree_bound: Option<usize>,
hiding_bound: Option<usize>
) -> Self
[src]
label: PolynomialLabel,
polynomial: Polynomial<F>,
degree_bound: Option<usize>,
hiding_bound: Option<usize>
) -> Self
Construct a new labeled polynomial by consuming polynomial
.
pub fn new(
label: PolynomialLabel,
polynomial: &'a Polynomial<F>,
degree_bound: Option<usize>,
hiding_bound: Option<usize>
) -> Self
[src]
label: PolynomialLabel,
polynomial: &'a Polynomial<F>,
degree_bound: Option<usize>,
hiding_bound: Option<usize>
) -> Self
Construct a new labeled polynomial.
pub fn label(&self) -> &String
[src]
Return the label for self
.
pub fn polynomial(&self) -> &Polynomial<F>
[src]
Retrieve the polynomial from self
.
pub fn evaluate(&self, point: F) -> F
[src]
Evaluate the polynomial in self
.
pub fn degree_bound(&self) -> Option<usize>
[src]
Retrieve the degree bound in self
.
pub fn is_hiding(&self) -> bool
[src]
Retrieve whether the polynomial in self
should be hidden.
pub fn hiding_bound(&self) -> Option<usize>
[src]
Retrieve the hiding bound for the polynomial in self
.
Methods from Deref<Target = Polynomial<F>>
pub fn is_zero(&self) -> bool
[src]
Checks if the given polynomial is zero.
pub fn degree(&self) -> usize
[src]
Returns the degree of the polynomial.
pub fn evaluate(&self, point: F) -> F
[src]
Evaluates self
at the given point
in the field.
pub fn naive_mul(&self, other: &DensePolynomial<F>) -> DensePolynomial<F>
[src]
Perform a naive n^2 multiplicatoin of self
by other
.
pub fn mul_by_vanishing_poly(
&self,
domain: EvaluationDomain<F>
) -> DensePolynomial<F>
[src]
&self,
domain: EvaluationDomain<F>
) -> DensePolynomial<F>
Multiply self
by the vanishing polynomial for the domain domain
.
Returns the quotient and remainder of the division.
pub fn divide_by_vanishing_poly(
&self,
domain: EvaluationDomain<F>
) -> Option<(DensePolynomial<F>, DensePolynomial<F>)>
[src]
&self,
domain: EvaluationDomain<F>
) -> Option<(DensePolynomial<F>, DensePolynomial<F>)>
Divide self
by the vanishing polynomial for the domain domain
.
Returns the quotient and remainder of the division.
pub fn evaluate_over_domain_by_ref(
&self,
domain: EvaluationDomain<F>
) -> Evaluations<F>
[src]
&self,
domain: EvaluationDomain<F>
) -> Evaluations<F>
Evaluate self
over domain
.
Trait Implementations
impl<'a, F: Field> CanonicalDeserialize for LabeledPolynomial<'a, F>
[src]
fn deserialize<R: Read>(reader: &mut R) -> Result<Self, SerializationError>
[src]
fn deserialize_uncompressed<R: Read>(
reader: &mut R
) -> Result<Self, SerializationError>
[src]
reader: &mut R
) -> Result<Self, SerializationError>
impl<'a, F: Field> CanonicalSerialize for LabeledPolynomial<'a, F>
[src]
fn serialize<W: Write>(&self, writer: &mut W) -> Result<(), SerializationError>
[src]
fn serialized_size(&self) -> usize
[src]
fn serialize_uncompressed<W: Write>(
&self,
writer: &mut W
) -> Result<(), SerializationError>
[src]
&self,
writer: &mut W
) -> Result<(), SerializationError>
fn uncompressed_size(&self) -> usize
[src]
impl<'a, F: Clone + Field> Clone for LabeledPolynomial<'a, F>
[src]
fn clone(&self) -> LabeledPolynomial<'a, F>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'a, F: Debug + Field> Debug for LabeledPolynomial<'a, F>
[src]
impl<'a, F: Field> Deref for LabeledPolynomial<'a, F>
[src]
type Target = Polynomial<F>
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
Auto Trait Implementations
impl<'a, F> RefUnwindSafe for LabeledPolynomial<'a, F> where
F: RefUnwindSafe,
F: RefUnwindSafe,
impl<'a, F> Send for LabeledPolynomial<'a, F>
impl<'a, F> Sync for LabeledPolynomial<'a, F>
impl<'a, F> Unpin for LabeledPolynomial<'a, F> where
F: Unpin,
F: Unpin,
impl<'a, F> UnwindSafe for LabeledPolynomial<'a, F> where
F: RefUnwindSafe + UnwindSafe,
F: RefUnwindSafe + UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,