Struct Bluesteins

Source
pub struct Bluesteins<T, InnerFft, WTwiddles, XTwiddles, Work> { /* private fields */ }
Expand description

Implements Bluestein’s algorithm for arbitrary FFT sizes.

Implementations§

Source§

impl<T, InnerFft, WTwiddles, XTwiddles, Work> Bluesteins<T, InnerFft, WTwiddles, XTwiddles, Work>

Source

pub unsafe fn new_from_parts( size: usize, inner_fft: InnerFft, w_forward: WTwiddles, w_inverse: WTwiddles, x_forward: XTwiddles, x_inverse: XTwiddles, work: Work, ) -> Self

Create a new transform generator from parts. Twiddles factors and work must be the correct size.

Source§

impl<T: FftFloat, InnerFft: Fft<Real = T>, WTwiddles: Default + Extend<Complex<T>> + AsMut<[Complex<T>]>, XTwiddles: Default + Extend<Complex<T>>, Work: Default + Extend<Complex<T>>> Bluesteins<T, InnerFft, WTwiddles, XTwiddles, Work>

Source

pub fn new_with_fft<F: Fn(usize) -> InnerFft>( size: usize, inner_fft_maker: F, ) -> Self

Create a new Bluestein’s algorithm generator.

Source§

impl<T: FftFloat, InnerFft: Fft<Real = T>, WTwiddles: AsRef<[Complex<T>]>, XTwiddles: AsRef<[Complex<T>]>, Work: AsRef<[Complex<T>]>> Bluesteins<T, InnerFft, WTwiddles, XTwiddles, Work>

Source

pub fn w_twiddles(&self) -> (&[Complex<T>], &[Complex<T>])

Return the w-twiddle factors.

Source

pub fn x_twiddles(&self) -> (&[Complex<T>], &[Complex<T>])

Return the w-twiddle factors.

Source

pub fn inner_fft_size(&self) -> usize

Return the inner FFT size.

Source

pub fn work_size(&self) -> usize

Return the work buffer size.

Source§

impl<AutosortTwiddles: Default + Extend<Complex<f32>> + AsRef<[Complex<f32>]>, AutosortWork: Default + Extend<Complex<f32>> + AsMut<[Complex<f32>]>, WTwiddles: Default + Extend<Complex<f32>> + AsMut<[Complex<f32>]>, XTwiddles: Default + Extend<Complex<f32>>, Work: Default + Extend<Complex<f32>>> Bluesteins<f32, Autosort<f32, AutosortTwiddles, AutosortWork>, WTwiddles, XTwiddles, Work>

Source

pub fn new(size: usize) -> Self

Create a new Bluestein’s algorithm generator.

Source§

impl<AutosortTwiddles: Default + Extend<Complex<f64>> + AsRef<[Complex<f64>]>, AutosortWork: Default + Extend<Complex<f64>> + AsMut<[Complex<f64>]>, WTwiddles: Default + Extend<Complex<f64>> + AsMut<[Complex<f64>]>, XTwiddles: Default + Extend<Complex<f64>>, Work: Default + Extend<Complex<f64>>> Bluesteins<f64, Autosort<f64, AutosortTwiddles, AutosortWork>, WTwiddles, XTwiddles, Work>

Source

pub fn new(size: usize) -> Self

Create a new Bluestein’s algorithm generator.

Trait Implementations§

Source§

impl<InnerFft: Fft<Real = f32>, WTwiddles: AsRef<[Complex<f32>]>, XTwiddles: AsRef<[Complex<f32>]>, Work: AsMut<[Complex<f32>]>> Fft for Bluesteins<f32, InnerFft, WTwiddles, XTwiddles, Work>

Source§

type Real = f32

The real type used by the FFT.
Source§

fn size(&self) -> usize

The size of the FFT.
Source§

fn transform_in_place(&self, input: &mut [Complex<f32>], transform: Transform)

Apply an FFT or IFFT in-place.
Source§

fn transform( &self, input: &[Complex<Self::Real>], output: &mut [Complex<Self::Real>], transform: Transform, )

Apply an FFT or IFFT out-of-place.
Source§

fn fft_in_place(&self, input: &mut [Complex<Self::Real>])

Apply an FFT in-place.
Source§

fn ifft_in_place(&self, input: &mut [Complex<Self::Real>])

Apply an IFFT in-place.
Source§

fn fft(&self, input: &[Complex<Self::Real>], output: &mut [Complex<Self::Real>])

Apply an FFT out-of-place.
Source§

fn ifft( &self, input: &[Complex<Self::Real>], output: &mut [Complex<Self::Real>], )

Apply an IFFT out-of-place.
Source§

impl<InnerFft: Fft<Real = f64>, WTwiddles: AsRef<[Complex<f64>]>, XTwiddles: AsRef<[Complex<f64>]>, Work: AsMut<[Complex<f64>]>> Fft for Bluesteins<f64, InnerFft, WTwiddles, XTwiddles, Work>

Source§

type Real = f64

The real type used by the FFT.
Source§

fn size(&self) -> usize

The size of the FFT.
Source§

fn transform_in_place(&self, input: &mut [Complex<f64>], transform: Transform)

Apply an FFT or IFFT in-place.
Source§

fn transform( &self, input: &[Complex<Self::Real>], output: &mut [Complex<Self::Real>], transform: Transform, )

Apply an FFT or IFFT out-of-place.
Source§

fn fft_in_place(&self, input: &mut [Complex<Self::Real>])

Apply an FFT in-place.
Source§

fn ifft_in_place(&self, input: &mut [Complex<Self::Real>])

Apply an IFFT in-place.
Source§

fn fft(&self, input: &[Complex<Self::Real>], output: &mut [Complex<Self::Real>])

Apply an FFT out-of-place.
Source§

fn ifft( &self, input: &[Complex<Self::Real>], output: &mut [Complex<Self::Real>], )

Apply an IFFT out-of-place.

Auto Trait Implementations§

§

impl<T, InnerFft, WTwiddles, XTwiddles, Work> !Freeze for Bluesteins<T, InnerFft, WTwiddles, XTwiddles, Work>

§

impl<T, InnerFft, WTwiddles, XTwiddles, Work> !RefUnwindSafe for Bluesteins<T, InnerFft, WTwiddles, XTwiddles, Work>

§

impl<T, InnerFft, WTwiddles, XTwiddles, Work> Send for Bluesteins<T, InnerFft, WTwiddles, XTwiddles, Work>
where InnerFft: Send, WTwiddles: Send, XTwiddles: Send, Work: Send, T: Send,

§

impl<T, InnerFft, WTwiddles, XTwiddles, Work> !Sync for Bluesteins<T, InnerFft, WTwiddles, XTwiddles, Work>

§

impl<T, InnerFft, WTwiddles, XTwiddles, Work> Unpin for Bluesteins<T, InnerFft, WTwiddles, XTwiddles, Work>
where InnerFft: Unpin, WTwiddles: Unpin, XTwiddles: Unpin, T: Unpin, Work: Unpin,

§

impl<T, InnerFft, WTwiddles, XTwiddles, Work> UnwindSafe for Bluesteins<T, InnerFft, WTwiddles, XTwiddles, Work>
where InnerFft: UnwindSafe, WTwiddles: UnwindSafe, XTwiddles: UnwindSafe, T: UnwindSafe, Work: UnwindSafe,

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.