pub struct Factorization {
pub map: BTreeMap<Monomial, (Polynomial, Rational)>,
pub gcd: Rational,
}Expand description
Uniquely reduced but volatile form of symbolic polynomial factorization.
Factors pinned symbols as monomials and factors the greatest common divisors (GCDs) of the
remaining polynomials and the GCD among them. Optionally, the GCDs are
signed comprising the factored predominant sign.
Initially, a factorization is uniquely reduced but in contrast to Polynomial, the invariants
are no longer enforced by storage, making this form volatile. As the members are public, the
invariants are unguarded. For instance, manipulating a polynomial in Self::map, potentially
invalidates the Self::gcd.
Fields§
§map: BTreeMap<Monomial, (Polynomial, Rational)>Symbolic storage mapping factored monomials to remaining polynomials and their GCDs.
gcd: RationalGCD among remaining polynomials’ GCDs.
Implementations§
Source§impl Factorization
impl Factorization
Trait Implementations§
Source§impl Clone for Factorization
impl Clone for Factorization
Source§fn clone(&self) -> Factorization
fn clone(&self) -> Factorization
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Factorization
impl Debug for Factorization
Source§impl Default for Factorization
impl Default for Factorization
Source§impl From<Factorization> for Polynomial
impl From<Factorization> for Polynomial
Source§fn from(f: Factorization) -> Self
fn from(f: Factorization) -> Self
Converts to this type from the input type.
Source§impl From<Factorization> for Tree
impl From<Factorization> for Tree
Source§fn from(f: Factorization) -> Self
fn from(f: Factorization) -> Self
Converts to this type from the input type.
Source§impl From<Polynomial> for Factorization
impl From<Polynomial> for Factorization
Source§fn from(p: Polynomial) -> Self
fn from(p: Polynomial) -> Self
Converts to this type from the input type.
Source§impl Ord for Factorization
impl Ord for Factorization
Source§fn cmp(&self, other: &Factorization) -> Ordering
fn cmp(&self, other: &Factorization) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for Factorization
impl PartialEq for Factorization
Source§impl PartialOrd for Factorization
impl PartialOrd for Factorization
impl Eq for Factorization
impl StructuralPartialEq for Factorization
Auto Trait Implementations§
impl Freeze for Factorization
impl RefUnwindSafe for Factorization
impl Send for Factorization
impl Sync for Factorization
impl Unpin for Factorization
impl UnwindSafe for Factorization
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