pub struct Monomial {
pub map: BTreeMap<Symbol, NonZeroI32>,
}Expand description
Uniquely reduced form of a symbolic monomial expression.
A primitive Laurent monomial $M_m$ is realized as the product of Symbols
$S_s$ with individual non-zero exponents $E_s$.
M_m \equiv \prod_s S_s^{E_s}All operators (e.g., Add, Mul) implemented for Monomial reduce an arbitrary
expression into this unique form.
Fields§
§map: BTreeMap<Symbol, NonZeroI32>Symbolic storage.
Implementations§
Trait Implementations§
Source§impl DivAssign for Monomial
impl DivAssign for Monomial
Source§fn div_assign(&mut self, other: Self)
fn div_assign(&mut self, other: Self)
Performs the
/= operation. Read moreSource§impl<S> FromIterator<S> for Monomial
impl<S> FromIterator<S> for Monomial
Source§fn from_iter<M: IntoIterator<Item = S>>(iter: M) -> Self
fn from_iter<M: IntoIterator<Item = S>>(iter: M) -> Self
Creates a value from an iterator. Read more
Source§impl MulAssign for Monomial
impl MulAssign for Monomial
Source§fn mul_assign(&mut self, other: Self)
fn mul_assign(&mut self, other: Self)
Performs the
*= operation. Read moreSource§impl Ord for Monomial
impl Ord for Monomial
Source§impl PartialOrd for Monomial
impl PartialOrd for Monomial
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 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