pub struct Polynomial { /* private fields */ }Expand description
An expanded polynomial over the input coordinates, with integer coefficients. Terms with a zero coefficient are never stored.
Implementations§
Source§impl Polynomial
impl Polynomial
Sourcepub fn degree(&self) -> Option<u32>
pub fn degree(&self) -> Option<u32>
Total degree of the highest-degree term, or None for the zero
polynomial.
Sourcepub fn is_homogeneous(&self) -> bool
pub fn is_homogeneous(&self) -> bool
Whether every term has the same total degree. The zero polynomial is homogeneous.
Trait Implementations§
Source§impl Clone for Polynomial
impl Clone for Polynomial
Source§impl Debug for Polynomial
impl Debug for Polynomial
impl Eq for Polynomial
Source§impl PartialEq for Polynomial
impl PartialEq for Polynomial
impl StructuralPartialEq for Polynomial
Auto Trait Implementations§
impl Forget for Polynomial
impl Freeze for Polynomial
impl Move for Polynomial
impl RefUnwindSafe for Polynomial
impl Send for Polynomial
impl Sync for Polynomial
impl Unpin for Polynomial
impl UnsafeUnpin for Polynomial
impl UnwindSafe for Polynomial
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