[][src]Struct realfft::RealToComplex

pub struct RealToComplex<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 RealToComplex<f64>[src]

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

Create a new RealToComplex FFT for input data of a given length. Returns an error if the length is not even.

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

Transform a vector of 2*N real-valued samples, storing the result in the N+1 element long complex output vector. The input buffer is used as scratch space, so the contents of input should be considered garbage after calling.

impl RealToComplex<f32>[src]

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

Create a new RealToComplex FFT for input data of a given length. Returns an error if the length is not even.

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

Transform a vector of 2*N real-valued samples, storing the result in the N+1 element long complex output vector. The input buffer is used as scratch space, so the contents of input should be considered garbage after calling.

Auto Trait Implementations

impl<T> !RefUnwindSafe for RealToComplex<T>

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

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

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

impl<T> !UnwindSafe for RealToComplex<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.