pub struct AdvancedGcdComputer { /* private fields */ }Expand description
Advanced GCD engine.
Implementations§
Source§impl AdvancedGcdComputer
impl AdvancedGcdComputer
Sourcepub fn new(config: AdvancedGcdConfig) -> Self
pub fn new(config: AdvancedGcdConfig) -> Self
Create a new advanced GCD computer.
Sourcepub fn default_config() -> Self
pub fn default_config() -> Self
Create with default configuration.
Sourcepub fn gcd(&mut self, p: &Polynomial, q: &Polynomial) -> Polynomial
pub fn gcd(&mut self, p: &Polynomial, q: &Polynomial) -> Polynomial
Compute GCD of two polynomials.
Sourcepub fn content(&self, poly: &Polynomial) -> BigInt
pub fn content(&self, poly: &Polynomial) -> BigInt
Extract content (GCD of coefficients).
Sourcepub fn primitive_part(&self, poly: &Polynomial) -> Polynomial
pub fn primitive_part(&self, poly: &Polynomial) -> Polynomial
Compute primitive part (divide by content).
Sourcepub fn stats(&self) -> &AdvancedGcdStats
pub fn stats(&self) -> &AdvancedGcdStats
Get statistics.
Trait Implementations§
Source§impl Debug for AdvancedGcdComputer
impl Debug for AdvancedGcdComputer
Auto Trait Implementations§
impl Freeze for AdvancedGcdComputer
impl RefUnwindSafe for AdvancedGcdComputer
impl Send for AdvancedGcdComputer
impl Sync for AdvancedGcdComputer
impl Unpin for AdvancedGcdComputer
impl UnsafeUnpin for AdvancedGcdComputer
impl UnwindSafe for AdvancedGcdComputer
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