Trait ark_poly::polynomial::multivariate::Term [−][src]
pub trait Term: Clone + PartialOrd + Ord + PartialEq + Eq + Hash + Default + Debug + Deref<Target = [(usize, usize)]> + Send + Sync + CanonicalSerialize + CanonicalDeserialize { fn new(term: Vec<(usize, usize)>) -> Self; fn degree(&self) -> usize; fn vars(&self) -> Vec<usize>; fn powers(&self) -> Vec<usize>; fn is_constant(&self) -> bool; fn evaluate<F: Field>(&self, p: &[F]) -> F; }
Expand description
Describes the interface for a term (monomial) of a multivariate polynomial.
Required methods
Create a new Term
from a list of tuples of the form (variable, power)
Returns the total degree of self
. This is the sum of all variable powers in self
fn is_constant(&self) -> bool
[src]
fn is_constant(&self) -> bool
[src]Returns whether self
is a constant
Implementors
Create a new Term
from a list of tuples of the form (variable, power)
Returns whether self
is a constant