interpax_fft.rfft2_modes

interpax_fft.rfft2_modes(n_fft, n_rfft, domain_fft=(0, 6.283185307179586), domain_rfft=(0, 6.283185307179586))Source

Modes for complex exponential basis for real Fourier transform.

Parameters:
  • n_fft (int) – Spectral resolution for domain_fft.

  • n_rfft (int) – Spectral resolution for domain_rfft.

  • domain_fft (tuple[float]) – Domain of coordinate over which samples are taken.

  • domain_rfft (tuple[float]) – Domain of coordinate over which samples are taken.

Returns:

  • modes_fft (jnp.ndarray) – Shape (n_fft, ). FFT Fourier modes.

  • modes_rfft (jnp.ndarray) – Shape (n_rfft // 2 + 1, ). Real FFT Fourier modes.