1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
extern crate dft;
extern crate num_complex;
extern crate num_traits;
use num_complex::Complex;
mod transform;
pub use transform::Transform;
#[allow(non_camel_case_types)]
pub type c32 = Complex<f32>;
#[allow(non_camel_case_types)]
pub type c64 = Complex<f64>;
#[inline(always)]
pub fn transform<D: ?Sized, T>(data: &D, m: usize, w: Complex<T>, a: Complex<T>) -> Vec<Complex<T>>
where D: Transform<T>
{
Transform::transform(data, m, w, a)
}