parameters: (resolution: Shape, dx: Tensor or float = 1, dtype: DType = None)
return_statement: return to_float(k) if dtype is None else cast(k, dtype)
docstring: Returns the discrete Fourier transform sample frequencies.
      These are the frequencies corresponding to the components of the result of `math.fft` on a tensor of shape `resolution`.
  
      Args:
          resolution: Grid resolution measured in cells
          dx: Distance between sampling points in real space.
          dtype: Data type of the returned tensor (Default value = None)
  
      Returns:
          `Tensor` holding the frequencies of the corresponding values computed by math.fft
docstring_summary: Returns the discrete Fourier transform sample frequencies.
      These are the frequencies corresponding to the components of the result of `math.fft` on a tensor of shape `resolution`.
docstring_tokens: Returns the discrete Fourier transform sample frequencies . These are the frequencies corresponding to the components of the result of math . fft on a tensor of shape resolution .
function: def fftfreq(resolution: Shape, dx: Tensor or float = 1, dtype: DType = None):
      """
      Returns the discrete Fourier transform sample frequencies.
      These are the frequencies corresponding to the components of the result of `math.fft` on a tensor of shape `resolution`.
  
      Args:
          resolution: Grid resolution measured in cells
          dx: Distance between sampling points in real space.
          dtype: Data type of the returned tensor (Default value = None)
  
      Returns:
          `Tensor` holding the frequencies of the corresponding values computed by math.fft
      """
      k = meshgrid(**{dim: np.fft.fftfreq(int(n)) for dim, n in resolution.spatial._named_sizes})
      k /= dx
      return to_float(k) if dtype is None else cast(k, dtype)
function_tokens: def fftfreq ( resolution : Shape , dx : Tensor or float = 1 , dtype : DType = None ) : k = meshgrid ( * * { dim : np . fft . fftfreq ( int ( n ) ) for dim , n in resolution . spatial . _named_sizes } ) k /= dx return to_float ( k ) if dtype is None else cast ( k , dtype )