pub enum MonomialOrder {
Lex,
Grlex,
Grevlex,
}Expand description
Monomial ordering types
Variants§
Lex
Lexicographic ordering (Lex)
Compares monomials by exponents left to right x^a1 y^a2 > x^b1 y^b2 if first non-equal exponent ai > bi
Grlex
Graded lexicographic ordering (Grlex)
First compare total degree, then use lex for ties
Grevlex
Graded reverse lexicographic ordering (Grevlex)
First compare total degree, then reverse lex for ties
Trait Implementations§
Source§impl Clone for MonomialOrder
impl Clone for MonomialOrder
Source§fn clone(&self) -> MonomialOrder
fn clone(&self) -> MonomialOrder
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MonomialOrder
impl Debug for MonomialOrder
Source§impl MonomialOrdering for MonomialOrder
impl MonomialOrdering for MonomialOrder
Source§fn compare_monomials(
&self,
mono1: &Expression,
mono2: &Expression,
variables: &[Symbol],
) -> Ordering
fn compare_monomials( &self, mono1: &Expression, mono2: &Expression, variables: &[Symbol], ) -> Ordering
Compare two monomials using this ordering Read more
Source§fn leading_monomial(
&self,
poly: &Expression,
variables: &[Symbol],
) -> Expression
fn leading_monomial( &self, poly: &Expression, variables: &[Symbol], ) -> Expression
Get the leading monomial of a polynomial Read more
Source§fn leading_coefficient(
&self,
poly: &Expression,
variables: &[Symbol],
) -> Expression
fn leading_coefficient( &self, poly: &Expression, variables: &[Symbol], ) -> Expression
Get the leading coefficient of a polynomial Read more
Source§impl PartialEq for MonomialOrder
impl PartialEq for MonomialOrder
impl Copy for MonomialOrder
impl Eq for MonomialOrder
impl StructuralPartialEq for MonomialOrder
Auto Trait Implementations§
impl Freeze for MonomialOrder
impl RefUnwindSafe for MonomialOrder
impl Send for MonomialOrder
impl Sync for MonomialOrder
impl Unpin for MonomialOrder
impl UnwindSafe for MonomialOrder
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more