f0uriest / interpax

Interpolation and function approximation with JAX
MIT License
115 stars 10 forks source link

Support for interpolation of complex-valued functions #15

Open mjo22 opened 7 months ago

mjo22 commented 7 months ago

Hello, it would be great if the interpolation methods were general enough to support the interpolation of complex-valued functions.

f0uriest commented 7 months ago

Can you be a bit more specific? I think they should work fine as is for complex valued functions of a real variable. Do you mean functions of a complex variable? That should also work using interp2d treating x as the real part and y as the imaginary part.