is_fft_grid

hcipy.fourier.is_fft_grid(grid, input_grid)

Returns whether grid is a native FFT grid of input_grid or not.

Note

The function get_fft_parameters() can be used

Parameters:
gridGrid

The grid in the Fourier domain. This grid is checked.

input_gridGrid

The grid in the real domain of the FFT.

Returns:
boolean

Whether grid is a native FFT grid of input_grid for some q, fov and shift.