pub struct SseRadix4<S: SseNum, T> {
twiddles: Box<[S::VectorType]>,
rotation: Rotation90<S::VectorType>,
base_fft: Arc<dyn Fft<T>>,
base_len: usize,
len: usize,
direction: FftDirection,
}Expand description
FFT algorithm optimized for power-of-two sizes, SSE accelerated version. This is designed to be used via a Planner, and not created directly.
Fields§
§twiddles: Box<[S::VectorType]>§rotation: Rotation90<S::VectorType>§base_fft: Arc<dyn Fft<T>>§base_len: usize§len: usize§direction: FftDirectionImplementations§
Source§impl<S: SseNum, T: FftNum> SseRadix4<S, T>
impl<S: SseNum, T: FftNum> SseRadix4<S, T>
Sourcepub fn new(k: u32, base_fft: Arc<dyn Fft<T>>) -> Result<Self, ()>
pub fn new(k: u32, base_fft: Arc<dyn Fft<T>>) -> Result<Self, ()>
Constructs a new SseRadix4 which computes FFTs of size 4^k * base_fft.len()
unsafe fn new_with_sse(k: u32, base_fft: Arc<dyn Fft<T>>) -> Self
unsafe fn perform_fft_immut( &self, input: &[Complex<T>], output: &mut [Complex<T>], _scratch: &mut [Complex<T>], )
unsafe fn perform_fft_out_of_place( &self, input: &[Complex<T>], output: &mut [Complex<T>], _scratch: &mut [Complex<T>], )
Trait Implementations§
Source§impl<S: SseNum, T> Direction for SseRadix4<S, T>
impl<S: SseNum, T> Direction for SseRadix4<S, T>
Source§fn fft_direction(&self) -> FftDirection
fn fft_direction(&self) -> FftDirection
Returns FftDirection::Forward if this instance computes forward FFTs, or FftDirection::Inverse for inverse FFTs
Source§impl<S: SseNum, T: FftNum> Fft<T> for SseRadix4<S, T>
impl<S: SseNum, T: FftNum> Fft<T> for SseRadix4<S, T>
Source§fn process_immutable_with_scratch(
&self,
input: &[Complex<T>],
output: &mut [Complex<T>],
_scratch: &mut [Complex<T>],
)
fn process_immutable_with_scratch( &self, input: &[Complex<T>], output: &mut [Complex<T>], _scratch: &mut [Complex<T>], )
Divides
input and output into chunks of self.len(), and computes a FFT on each chunk while
keeping input untouched. Read moreSource§fn process_outofplace_with_scratch(
&self,
input: &mut [Complex<T>],
output: &mut [Complex<T>],
_scratch: &mut [Complex<T>],
)
fn process_outofplace_with_scratch( &self, input: &mut [Complex<T>], output: &mut [Complex<T>], _scratch: &mut [Complex<T>], )
Divides
input and output into chunks of size self.len(), and computes a FFT on each chunk. Read moreSource§fn process_with_scratch(
&self,
buffer: &mut [Complex<T>],
scratch: &mut [Complex<T>],
)
fn process_with_scratch( &self, buffer: &mut [Complex<T>], scratch: &mut [Complex<T>], )
Source§fn get_inplace_scratch_len(&self) -> usize
fn get_inplace_scratch_len(&self) -> usize
Returns the size of the scratch buffer required by
process_with_scratch Read moreSource§fn get_outofplace_scratch_len(&self) -> usize
fn get_outofplace_scratch_len(&self) -> usize
Returns the size of the scratch buffer required by
process_outofplace_with_scratch Read moreSource§fn get_immutable_scratch_len(&self) -> usize
fn get_immutable_scratch_len(&self) -> usize
Returns the size of the scratch buffer required by
process_immutable_with_scratch Read moreAuto Trait Implementations§
impl<S, T> !RefUnwindSafe for SseRadix4<S, T>
impl<S, T> !UnwindSafe for SseRadix4<S, T>
impl<S, T> Freeze for SseRadix4<S, T>
impl<S, T> Send for SseRadix4<S, T>
impl<S, T> Sync for SseRadix4<S, T>
impl<S, T> Unpin for SseRadix4<S, T>
impl<S, T> UnsafeUnpin for SseRadix4<S, T>
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