interpax_fft.interp_rfft2
- interpax_fft.interp_rfft2(x0, x1, f, domain0=(0, 6.283185307179586), domain1=(0, 6.283185307179586), axes=(-2, -1))Source
Interpolate real-valued
fto coordinates(x0,x1)with FFT and MMT.- Parameters:
x0 (jnp.ndarray) – Real query points of coordinate in
domain0where interpolation is desired. Shape must broadcast with shapenp.delete(a.shape,axes). The coordinates stored here must be the same coordinate enumerated across axismin(axes)of the function valuesf.x1 (jnp.ndarray) – Real query points of coordinate in
domain1where interpolation is desired. Shape must broadcast with shapenp.delete(a.shape,axes). The coordinates stored here must be the same coordinate enumerated across axismax(axes)of the function valuesf.f (jnp.ndarray) – Shape (…, f.shape[-2], f.shape[-1]). Real function values on uniform tensor-product grid over an open period.
domain0 (tuple[float]) – Domain of coordinate specified by x₀ over which samples were taken.
domain1 (tuple[float]) – Domain of coordinate specified by x₁ over which samples were taken.
axes (tuple[int]) – Axes along which to transform. The real transform is done along
axes[1], so it will be more efficient for that to denote the smaller size axis inaxes.
- Returns:
fq (jnp.ndarray) – Real function value at query points.