Skip to main content

fftshift

Function fftshift 

Source
pub fn fftshift(data: &[f64], nx: usize, ny: usize, nz: usize) -> Vec<f64>
Expand description

3D FFT shift: swap quadrants so zero-frequency is at center

Returns a new array with the zero-frequency component shifted to the center. Matches numpy.fft.fftshift behavior for 3D data in Fortran order.