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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
//! FFT and spectral analysis for Numra.
//!
//! Provides Fast Fourier Transform, power spectral density, windowing,
//! convolution, and short-time Fourier transform. Built on `rustfft`.
//!
//! All public functions are generic over `S: Scalar` (f32/f64), with
//! the FFT computation internally performed in f64 via rustfft.
//!
//! # Example
//!
//! ```rust
//! use numra_fft::{fft, ifft, Complex};
//!
//! let signal: Vec<Complex<f64>> = vec![
//! Complex::new(1.0_f64, 0.0),
//! Complex::new(0.0, 0.0),
//! Complex::new(0.0, 0.0),
//! Complex::new(0.0, 0.0),
//! ];
//! let spectrum = fft(&signal);
//! let recovered = ifft(&spectrum);
//! for (a, b) in signal.iter().zip(recovered.iter()) {
//! assert!((a.re - b.re).abs() < 1e-12);
//! }
//! ```
//!
//! Author: Moussa Leblouba
//! Date: 9 February 2026
//! Modified: 2 May 2026
pub use ;
pub use ;
pub use ;
pub use ;
pub use ;
pub use ;