pub struct Monomial {
pub exponents: Arc<[u32]>,
}Fields§
§exponents: Arc<[u32]>Implementations§
Source§impl Monomial
impl Monomial
pub fn new(exponents: Vec<u32>) -> Self
pub fn one(nvars: usize) -> Self
pub fn nvars(&self) -> usize
pub fn degree(&self) -> u32
pub fn multiply(&self, other: &Self) -> Self
pub fn divides(&self, other: &Self) -> bool
pub fn divide(&self, other: &Self) -> Option<Self>
pub fn lcm(&self, other: &Self) -> Self
pub fn compare(&self, other: &Self, order: MonomialOrder) -> Ordering
Trait Implementations§
impl Eq for Monomial
impl StructuralPartialEq for Monomial
Auto Trait Implementations§
impl Freeze for Monomial
impl RefUnwindSafe for Monomial
impl Send for Monomial
impl Sync for Monomial
impl Unpin for Monomial
impl UnsafeUnpin for Monomial
impl UnwindSafe for Monomial
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more