interpax_fft.interp_dct

interpax_fft.interp_dct(x, f, lobatto=False, axis=-1)Source

Interpolate f to x with discrete Chebyshev transform.

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

  • f (jnp.ndarray) – Real function values on Chebyshev points to interpolate.

  • lobatto (bool) – Whether f was sampled on the Gauss-Lobatto (extrema-plus-endpoint) or interior roots grid for Chebyshev points.

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

Returns:

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