[][src]Struct realfft::ComplexToReal

pub struct ComplexToReal<T> { /* fields omitted */ }

An FFT that takes a real-valued input vector of length 2*N and transforms it to a complex spectrum of length N+1.

Implementations

impl ComplexToReal<f64>[src]

Create a new ComplexToReal iFFT for output data of a given length. Returns an error if the length is not even.

pub fn new(length: usize) -> Result<Self, Box<dyn Error>>[src]

pub fn process(
    &mut self,
    input: &[Complex<f64>],
    output: &mut [f64]
) -> Result<(), Box<dyn Error>>
[src]

Transform a complex spectrum of N+1 values and store the real result in the 2*N long output.

impl ComplexToReal<f32>[src]

Create a new ComplexToReal iFFT for output data of a given length. Returns an error if the length is not even.

pub fn new(length: usize) -> Result<Self, Box<dyn Error>>[src]

pub fn process(
    &mut self,
    input: &[Complex<f32>],
    output: &mut [f32]
) -> Result<(), Box<dyn Error>>
[src]

Transform a complex spectrum of N+1 values and store the real result in the 2*N long output.

Auto Trait Implementations

impl<T> !RefUnwindSafe for ComplexToReal<T>

impl<T> Send for ComplexToReal<T> where
    T: Send

impl<T> Sync for ComplexToReal<T> where
    T: Sync

impl<T> Unpin for ComplexToReal<T> where
    T: Unpin

impl<T> !UnwindSafe for ComplexToReal<T>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.