Struct ark_poly::polynomial::multivariate::SparseTerm [−][src]
Stores a term (monomial) in a multivariate polynomial.
Each element is of the form (variable, power).
Trait Implementations
impl CanonicalDeserialize for SparseTerm[src]
fn deserialize<R: Read>(reader: R) -> Result<Self, SerializationError>[src]
fn deserialize_uncompressed<R: Read>(
reader: R
) -> Result<Self, SerializationError>[src]
reader: R
) -> Result<Self, SerializationError>
fn deserialize_unchecked<R: Read>(reader: R) -> Result<Self, SerializationError>[src]
impl CanonicalSerialize for SparseTerm[src]
fn serialize<W: Write>(&self, writer: W) -> Result<(), SerializationError>[src]
fn serialized_size(&self) -> usize[src]
fn serialize_uncompressed<W: Write>(
&self,
writer: W
) -> Result<(), SerializationError>[src]
&self,
writer: W
) -> Result<(), SerializationError>
fn serialize_unchecked<W: Write>(
&self,
writer: W
) -> Result<(), SerializationError>[src]
&self,
writer: W
) -> Result<(), SerializationError>
fn uncompressed_size(&self) -> usize[src]
impl Clone for SparseTerm[src]
fn clone(&self) -> SparseTerm[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for SparseTerm[src]
impl Default for SparseTerm[src]
fn default() -> SparseTerm[src]
impl Deref for SparseTerm[src]
type Target = [(usize, usize)]
The resulting type after dereferencing.
fn deref(&self) -> &[(usize, usize)][src]
impl Eq for SparseTerm[src]
impl Hash for SparseTerm[src]
fn hash<__H: Hasher>(&self, state: &mut __H)[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
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.
#[must_use]pub fn max(self, other: Self) -> Self1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self1.50.0[src]
impl PartialEq<SparseTerm> for SparseTerm[src]
fn eq(&self, other: &SparseTerm) -> bool[src]
fn ne(&self, other: &SparseTerm) -> bool[src]
impl PartialOrd<SparseTerm> for SparseTerm[src]
fn partial_cmp(&self, other: &SparseTerm) -> Option<Ordering>[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool1.0.0[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
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,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> CallHasher for T where
T: Hash + ?Sized,
T: Hash + ?Sized,
pub default fn get_hash<H, B>(value: &H, build_hasher: &B) -> u64 where
B: BuildHasher,
H: Hash + ?Sized,
B: BuildHasher,
H: Hash + ?Sized,
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub 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.
pub 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.
pub 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>,