Struct ark_poly::polynomial::multivariate::SparsePolynomial [−][src]
Expand description
Stores a sparse multivariate polynomial in coefficient form.
Fields
num_vars: usize
The number of variables the polynomial supports
terms: Vec<(F, T)>
List of each term along with its coefficient
Trait Implementations
type Output = SparsePolynomial<F, T>
type Output = SparsePolynomial<F, T>
The resulting type after applying the +
operator.
Performs the +
operation. Read more
type Output = SparsePolynomial<F, T>
type Output = SparsePolynomial<F, T>
The resulting type after applying the +
operator.
Performs the +
operation. Read more
impl<'a, 'b, F: Field, T: Term> AddAssign<&'a SparsePolynomial<F, T>> for SparsePolynomial<F, T>
[src]
impl<'a, 'b, F: Field, T: Term> AddAssign<&'a SparsePolynomial<F, T>> for SparsePolynomial<F, T>
[src]Performs the +=
operation. Read more
impl<'a, 'b, F: Field, T: Term> AddAssign<(F, &'a SparsePolynomial<F, T>)> for SparsePolynomial<F, T>
[src]
impl<'a, 'b, F: Field, T: Term> AddAssign<(F, &'a SparsePolynomial<F, T>)> for SparsePolynomial<F, T>
[src]Performs the +=
operation. Read more
Reads Self
from reader
.
Reads Self
from reader
without compression.
Reads self
from reader
without compression, and without performing
validity checks. Should be used only when the input is trusted. Read more
Serializes self
into writer
.
It is left up to a particular type for how it strikes the
serialization efficiency vs compression tradeoff.
For standard types (e.g. bool
, lengths, etc.) typically an uncompressed
form is used, whereas for algebraic types compressed forms are used. Read more
Serializes self
into writer
without compression.
Serializes self
into writer
without compression, and without
performing validity checks. Should be used only when there is no
danger of adversarial manipulation of the output. Read more
Outputs an l
-variate polynomial which is the sum of l
d
-degree
univariate polynomials where each coefficient is sampled uniformly at random.
Constructs a new polynomial from a list of tuples of the form (coeff, Self::Term)
Returns the terms of a self
as a list of tuples of the form (coeff, Self::Term)
type Term = SparseTerm
type Term = SparseTerm
The type of the terms of self
Constructs a new polynomial from a list of tuples of the form (Self::Term, coeff)
type Output = SparsePolynomial<F, T>
type Output = SparsePolynomial<F, T>
The resulting type after applying the -
operator.
Performs the unary -
operation. Read more
impl<F: Field, T: Term> PartialEq<SparsePolynomial<F, T>> for SparsePolynomial<F, T> where
F: PartialEq,
T: PartialEq,
[src]
impl<F: Field, T: Term> PartialEq<SparsePolynomial<F, T>> for SparsePolynomial<F, T> where
F: PartialEq,
T: PartialEq,
[src]type Output = SparsePolynomial<F, T>
type Output = SparsePolynomial<F, T>
The resulting type after applying the -
operator.
Performs the -
operation. Read more
impl<'a, 'b, F: Field, T: Term> SubAssign<&'a SparsePolynomial<F, T>> for SparsePolynomial<F, T>
[src]
impl<'a, 'b, F: Field, T: Term> SubAssign<&'a SparsePolynomial<F, T>> for SparsePolynomial<F, T>
[src]Performs the -=
operation. Read more
Auto Trait Implementations
impl<F, T> Send for SparsePolynomial<F, T>
impl<F, T> Sync for SparsePolynomial<F, T>
impl<F, T> Unpin for SparsePolynomial<F, T> where
F: Unpin,
T: Unpin,
Blanket Implementations
Mutably borrows from an owned value. Read more
pub default fn get_hash<H, B>(value: &H, build_hasher: &B) -> u64 where
B: BuildHasher,
H: Hash + ?Sized,
fn hash_uncompressed<H>(&self) -> GenericArray<u8, <H as Digest>::OutputSize> where
H: Digest,
[src]type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V