pub fn fft(input: &Array1<f64>) -> Array1<Complex64>
Expand description
Compute the forward FFT of a real-valued array.
ยงExamples
use ndarray::Array1;
let x = Array1::from_vec(vec![0.0, 1.0, 0.0, -1.0]);
let y = scir_fft::fft(&x);
assert_eq!(y.len(), x.len());