Skip to main content

FftEngine1D

Trait FftEngine1D 

Source
pub trait FftEngine1D {
    // Required methods
    fn execute(
        &mut self,
        input: &[Complex<f64>],
    ) -> Result<Vec<Complex<f64>>, ErrorsJSL>;
    fn plan(
        &mut self,
        size: usize,
        scale: FftScaleFactor,
        direction: FftDirection,
        ordering: FftOrdering,
    ) -> Result<(), ErrorsJSL>;
    fn get_size(&self) -> usize;
    fn get_scale_factor(&self) -> FftScaleFactor;
    fn get_direction(&self) -> FftDirection;
    fn get_ordering(&self) -> FftOrdering;
}
Expand description

A planned one-dimensional complex FFT.

Required Methods§

Source

fn execute( &mut self, input: &[Complex<f64>], ) -> Result<Vec<Complex<f64>>, ErrorsJSL>

Source

fn plan( &mut self, size: usize, scale: FftScaleFactor, direction: FftDirection, ordering: FftOrdering, ) -> Result<(), ErrorsJSL>

Source

fn get_size(&self) -> usize

Source

fn get_scale_factor(&self) -> FftScaleFactor

Source

fn get_direction(&self) -> FftDirection

Source

fn get_ordering(&self) -> FftOrdering

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§