interpax_fft.interp_rfft

interpax_fft.interp_rfft(x, f, domain=(0, 6.283185307179586), axis=-1)Source

Interpolate real-valued f to x with FFT and MMT.

Parameters:
  • x (jnp.ndarray) – Real query points where interpolation is desired. Shape of x must broadcast with arrays of shape np.delete(f.shape,axis).

  • f (jnp.ndarray) – Real function values on uniform grid over an open period to interpolate.

  • domain (tuple[float]) – Domain over which samples were taken.

  • axis (int) – Axis along which to transform.

Returns:

fq (jnp.ndarray) – Real function value at query points.