Skip to main content

SseRadix4

Struct SseRadix4 

Source
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: FftDirection

Implementations§

Source§

impl<S: SseNum, T: FftNum> SseRadix4<S, T>

Source

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()

Source

unsafe fn new_with_sse(k: u32, base_fft: Arc<dyn Fft<T>>) -> Self

Source

unsafe fn perform_fft_immut( &self, input: &[Complex<T>], output: &mut [Complex<T>], _scratch: &mut [Complex<T>], )

Source

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>

Source§

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>

Source§

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 more
Source§

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 more
Source§

fn process_with_scratch( &self, buffer: &mut [Complex<T>], scratch: &mut [Complex<T>], )

Divides buffer into chunks of size self.len(), and computes a FFT on each chunk. Read more
Source§

fn get_inplace_scratch_len(&self) -> usize

Returns the size of the scratch buffer required by process_with_scratch Read more
Source§

fn get_outofplace_scratch_len(&self) -> usize

Returns the size of the scratch buffer required by process_outofplace_with_scratch Read more
Source§

fn get_immutable_scratch_len(&self) -> usize

Returns the size of the scratch buffer required by process_immutable_with_scratch Read more
Source§

fn process(&self, buffer: &mut [Complex<T>])

Computes a FFT in-place. Read more
Source§

impl<S: SseNum, T> Length for SseRadix4<S, T>

Source§

fn len(&self) -> usize

The FFT size that this algorithm can process

Auto 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>
where <S as SseNum>::VectorType: Freeze,

§

impl<S, T> Send for SseRadix4<S, T>

§

impl<S, T> Sync for SseRadix4<S, T>

§

impl<S, T> Unpin for SseRadix4<S, T>
where <S as SseNum>::VectorType: Unpin,

§

impl<S, T> UnsafeUnpin for SseRadix4<S, T>
where <S as SseNum>::VectorType: UnsafeUnpin,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.