API Documentation

Interpolation with fast Fourier transform (FFT)

interpax_fft.rfft_interp1d(f, n[, sx, dx])

Interpolation of a real-valued 1D periodic function via FFT.

interpax_fft.rfft_interp2d(f, n1, n2[, sx, ...])

Interpolation of a real-valued 2D periodic function via FFT.

interpax_fft.irfft_interp1d(c, nx, n[, sx, dx])

Interpolation of a 1D Hermitian Fourier series via FFT.

interpax_fft.irfft_interp2d(c, ny, n1, n2[, ...])

Interpolation of 2D Hermitian Fourier series via FFT.

Interpolation with matrix multiplication transform (MMT)

interpax_fft.idct_mmt(x, a[, axis, vander])

Evaluate Chebyshev coefficients a at x ∈ [-1, 1].

interpax_fft.ifft_mmt(x, a[, domain, axis, ...])

Evaluate Fourier coefficients a at x.

interpax_fft.interp_dct(x, f[, lobatto, axis])

Interpolate f to x with discrete Chebyshev transform.

interpax_fft.interp_rfft(x, f[, domain, axis])

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

interpax_fft.interp_rfft2(x0, x1, f[, ...])

Interpolate real-valued f to coordinates (x0,x1) with FFT and MMT.

interpax_fft.irfft2_mmt_pos(x0, x1, a, n0, n1)

Evaluate Fourier coefficients a at coordinates (x0,x1).

interpax_fft.irfft_mmt(x, a, n[, domain, axis])

Evaluate Fourier coefficients a at x.

interpax_fft.irfft_mmt_pos(x, a, n[, ...])

Evaluate Fourier coefficients a at x.

interpax_fft.rfft2_modes(n_fft, n_rfft[, ...])

Modes for complex exponential basis for real Fourier transform.

interpax_fft.rfft2_vander(x_fft, x_rfft, ...)

Return Vandermonde matrix for complex Fourier modes.

interpax_fft.rfft_to_trig(a, n[, axis])

Spectral coefficients of the Nyquist trigonometric interpolant.

interpax_fft.trig_vander(x, n[, domain])

Nyquist trigonometric interpolant basis evaluated at x.

Function approximation with series expansions

interpax_fft.DoubleChebyshevSeries(f[, ...])

Real-valued 2D Chebyshev series.

interpax_fft.FourierChebyshevSeries(f[, ...])

Real-valued Fourier-Chebyshev series.

interpax_fft.PiecewiseChebyshevSeries(cheb)

Chebyshev series.

Useful utilities for interpolation, root finding, etc.

interpax_fft.cheb_from_dct(a[, axis])

Get discrete Chebyshev transform from discrete cosine transform.

interpax_fft.cheb_pts(n[, domain, lobatto])

Get n Chebyshev points mapped to given domain.

interpax_fft.dct_from_cheb(cheb[, axis])

Get discrete cosine transform from discrete Chebyshev transform.

interpax_fft.epigraph_and(points, df_dy, /)

Set intersection of epigraph of function f with the given set of points.

interpax_fft.fourier_pts(n[, domain])

Get n Fourier points in domain.

interpax_fft.take_mask(a, mask, /, *[, ...])

JIT compilable method to return a[mask][:size] padded by fill_value.