Struct ark_poly::polynomial::multivariate::SparseTerm[][src]

pub struct SparseTerm(_);

Stores a term (monomial) in a multivariate polynomial. Each element is of the form (variable, power).

Trait Implementations

impl CanonicalDeserialize for SparseTerm[src]

impl CanonicalSerialize for SparseTerm[src]

impl Clone for SparseTerm[src]

impl Debug for SparseTerm[src]

impl Default for SparseTerm[src]

impl Deref for SparseTerm[src]

type Target = [(usize, usize)]

The resulting type after dereferencing.

impl Eq for SparseTerm[src]

impl Hash for SparseTerm[src]

impl Ord for SparseTerm[src]

fn cmp(&self, other: &Self) -> Ordering[src]

Sort by total degree. If total degree is equal then ordering is given by exponent weight in lower-numbered variables ie. x_1 > x_2, x_1^2 > x_1 * x_2, etc.

impl PartialEq<SparseTerm> for SparseTerm[src]

impl PartialOrd<SparseTerm> for SparseTerm[src]

impl StructuralEq for SparseTerm[src]

impl StructuralPartialEq for SparseTerm[src]

impl Term for SparseTerm[src]

fn new(term: Vec<(usize, usize)>) -> Self[src]

Create a new Term from a list of tuples of the form (variable, power)

fn degree(&self) -> usize[src]

Returns the sum of all variable powers in self

fn vars(&self) -> Vec<usize>[src]

Returns a list of variables in self

fn powers(&self) -> Vec<usize>[src]

Returns a list of variable powers in self

fn is_constant(&self) -> bool[src]

Returns whether self is a constant

fn evaluate<F: Field>(&self, point: &[F]) -> F[src]

Evaluates self at the given point in the field.

Auto Trait Implementations

impl Send for SparseTerm

impl Sync for SparseTerm

impl Unpin for SparseTerm

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CallHasher for T where
    T: Hash + ?Sized

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,