[][src]Struct rustfft::algorithm::Dft

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

Naive O(n^2 ) Discrete Fourier Transform implementation

This implementation is primarily used to test other FFT algorithms.

// Computes a naive DFT of size 123
use rustfft::algorithm::Dft;
use rustfft::{Fft, FftDirection};
use rustfft::num_complex::Complex;

let mut buffer = vec![Complex{ re: 0.0f32, im: 0.0f32 }; 123];

let dft = Dft::new(123, FftDirection::Forward);
dft.process(&mut buffer);

Implementations

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

pub fn new(len: usize, direction: FftDirection) -> Self[src]

Preallocates necessary arrays and precomputes necessary data to efficiently compute Dft

Trait Implementations

impl<T> Direction for Dft<T>[src]

impl<T: FftNum> Fft<T> for Dft<T>[src]

impl<T> Length for Dft<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for Dft<T> where
    T: RefUnwindSafe
[src]

impl<T> Send for Dft<T> where
    T: Send
[src]

impl<T> Sync for Dft<T> where
    T: Sync
[src]

impl<T> Unpin for Dft<T> where
    T: Unpin
[src]

impl<T> UnwindSafe for Dft<T> where
    T: UnwindSafe
[src]

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.