pub fn fft_bounds(shape: &[usize]) -> Vec<(i32, i32)>
Expand description
Returns the minimum and maximum values for each FFT dimension.
§Arguments
shape
- The shape of the FFT
§Returns
A vector of tuples (min, max) for each dimension of the FFT.
§Examples
use scirs2_fft::fft_bounds;
let bounds = fft_bounds(&[4, 4]);
assert_eq!(bounds, vec![(-2, 1), (-2, 1)]);
let bounds = fft_bounds(&[5, 3]);
assert_eq!(bounds, vec![(-2, 2), (-1, 1)]);