pub struct Butterfly;Expand description
Sum and difference of a two-element input.
This is the classic butterfly primitive used in lattice, complementary, and polyphase-style constructions. It is also the unnormalized 2-point Hadamard/Haar transform; apply any desired normalization outside the primitive.
§Examples
use dsp_process::{Butterfly, Process};
assert_eq!(Butterfly.process([4, 1]), [5, 3]);Trait Implementations§
impl Copy for Butterfly
Auto Trait Implementations§
impl Freeze for Butterfly
impl RefUnwindSafe for Butterfly
impl Send for Butterfly
impl Sync for Butterfly
impl Unpin for Butterfly
impl UnsafeUnpin for Butterfly
impl UnwindSafe for Butterfly
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