to_recip#
- diffsims.utils.fourier_transform.to_recip(x)[source]#
Converts spatial coordinates to Fourier frequencies.
- Parameters:
- xlist [numpy.ndarray [float]],
ofshape[(nx,), (ny,), …] List (or equivalent) of vectors which define a mesh in the dimension equal to the length of x
- xlist [numpy.ndarray [float]],
- Returns:
- ylist [numpy.ndarray [float]],
ofshape[(nx,), (ny,), …] List of vectors defining a mesh such that for a function, f, defined on the mesh given by x, fft(f) is defined on the mesh given by y
- ylist [numpy.ndarray [float]],