Struct realfft::RealToComplexEven[][src]

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

Implementations

impl<T: FftNum> RealToComplexEven<T>[src]

pub fn new(length: usize, fft_planner: &mut FftPlanner<T>) -> Self[src]

Create a new RealToComplex FFT for input data of a given length, and uses the given FftPlanner to build the inner FFT. Panics if the length is not even.

Trait Implementations

impl<T: FftNum> RealToComplex<T> for RealToComplexEven<T>[src]

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

Transform a vector of N real-valued samples, storing the result in the N/2+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. It also allocates additional scratch space as needed. An error is returned if any of the given slices has the wrong length.

fn process_with_scratch(
    &self,
    input: &mut [T],
    output: &mut [Complex<T>],
    scratch: &mut [Complex<T>]
) -> Result<(), Box<dyn Error>>
[src]

Transform a vector of N real-valued samples, storing the result in the N/2+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. It also uses the provided scratch vector instead of allocating, which will be faster if it is called more than once. An error is returned if any of the given slices has the wrong length.

Auto Trait Implementations

impl<T> !RefUnwindSafe for RealToComplexEven<T>

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

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

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

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