pub struct BitwiseandConvolve<M> { /* private fields */ }
Implementations§
Source§impl<M> BitwiseandConvolve<M>where
M: Monoid,
impl<M> BitwiseandConvolve<M>where
M: Monoid,
Sourcepub fn zeta_transform(f: &mut [M::T])
pub fn zeta_transform(f: &mut [M::T])
$$g(m) = \sum_{n \mid m}f(n)$$
Source§impl<G> BitwiseandConvolve<G>where
G: Group,
impl<G> BitwiseandConvolve<G>where
G: Group,
Sourcepub fn mobius_transform(f: &mut [G::T])
pub fn mobius_transform(f: &mut [G::T])
$$f(m) = \sum_{n \mid m}h(n)$$
Trait Implementations§
Source§impl<R> ConvolveSteps for BitwiseandConvolve<R>
impl<R> ConvolveSteps for BitwiseandConvolve<R>
type T = Vec<<R as SemiRing>::T>
type F = Vec<<R as SemiRing>::T>
fn length(t: &Self::T) -> usize
fn transform(t: Self::T, _len: usize) -> Self::F
fn inverse_transform(f: Self::F, _len: usize) -> Self::T
fn multiply(f: &mut Self::F, g: &Self::F)
fn convolve(a: Self::T, b: Self::T) -> Self::T
Auto Trait Implementations§
impl<M> Freeze for BitwiseandConvolve<M>
impl<M> RefUnwindSafe for BitwiseandConvolve<M>
impl<M> Send for BitwiseandConvolve<M>
impl<M> Sync for BitwiseandConvolve<M>
impl<M> Unpin for BitwiseandConvolve<M>
impl<M> UnwindSafe for BitwiseandConvolve<M>
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