Skip to main content

C2cPlanF32

Trait C2cPlanF32 

Source
pub trait C2cPlanF32: Send {
    // Required methods
    fn n_fft(&self) -> usize;
    fn forward(&mut self, buf: &mut [Complex<f32>]) -> SpectrogramResult<()>;
    fn inverse(&mut self, buf: &mut [Complex<f32>]) -> SpectrogramResult<()>;
}
Expand description

A planned complex-to-complex FFT using f32 (single-precision) arithmetic.

Same contract as C2cPlan but operates on single-precision floats.

Required Methods§

Source

fn n_fft(&self) -> usize

Source

fn forward(&mut self, buf: &mut [Complex<f32>]) -> SpectrogramResult<()>

Forward DFT (f32).

§Errors

Returns an error if the buffer length doesn’t match the plan size.

Source

fn inverse(&mut self, buf: &mut [Complex<f32>]) -> SpectrogramResult<()>

Inverse DFT, unnormalized (f32).

§Errors

Returns an error if the buffer length doesn’t match the plan size.

Implementors§