pub struct Factorization<T> { /* private fields */ }
Expand description
Factorization of an integer
Implementations§
Source§impl<T: NumberTheory> Factorization<T>
impl<T: NumberTheory> Factorization<T>
pub fn new() -> Self
pub fn from_components(base: Vec<T>, power: Vec<u64>) -> Self
pub fn factor_iter(&self) -> Iter<'_, T>
pub fn power_iter(&self) -> Iter<'_, u64>
pub fn add_factor(&mut self, fctr: T)
pub fn add_power(&mut self, power: u64)
pub fn pair_iter(&self) -> Zip<Iter<'_, T>, Iter<'_, u64>>
pub fn max(&self) -> T
pub fn k_free(&self, k: u64) -> bool
pub fn prime_omega(&self) -> u64
Trait Implementations§
Source§impl<T: Clone> Clone for Factorization<T>
impl<T: Clone> Clone for Factorization<T>
Source§fn clone(&self) -> Factorization<T>
fn clone(&self) -> Factorization<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<T: Default> Default for Factorization<T>
impl<T: Default> Default for Factorization<T>
Source§fn default() -> Factorization<T>
fn default() -> Factorization<T>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<T> Freeze for Factorization<T>
impl<T> RefUnwindSafe for Factorization<T>where
T: RefUnwindSafe,
impl<T> Send for Factorization<T>where
T: Send,
impl<T> Sync for Factorization<T>where
T: Sync,
impl<T> Unpin for Factorization<T>where
T: Unpin,
impl<T> UnwindSafe for Factorization<T>where
T: UnwindSafe,
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