interpax_fft.irfft2_mmt_pos
- interpax_fft.irfft2_mmt_pos(x0, x1, a, n0, n1, domain0=(0, 6.283185307179586), domain1=(0, 6.283185307179586), axes=(-2, -1))Source
Evaluate Fourier coefficients
aat coordinates(x0,x1).Uses matrix multiplication transform.
- 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 Fourier coefficientsa.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 Fourier coefficientsa.a (jnp.ndarray) – Shape (…, a.shape[-2], a.shape[-1]). Fourier coefficients.
f=rfft2(f,axes=axes,norm="forward")a=jnp.moveaxis(f,axes,(-2,-1)).at[...,i].divide(2)*2.n0 (int) – Spectral resolution of
afordomain0.n1 (int) – Spectral resolution of
afordomain1.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.
- Returns:
fq (jnp.ndarray) – Real function value at query points.