Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AkimaInterpolation of Float32 data results in Float64 values when interpolating #382

Closed
lsmohan opened this issue Jan 28, 2025 · 3 comments

Comments

@lsmohan
Copy link

lsmohan commented Jan 28, 2025

When using AkimaInterpolation in DataInterpolations v7.0.1 with Float32 data, I expected that the interpolation values will result in Float32. However the results are Float64.

Simple MWE

using DataInterpolations

ak = AkimaInterpolation(randn(Float32, 10), 0.1f0:0.1f0:1f0)

ak(0.23f0)

Results in a Float64 value on my mac m2.

@ChrisRackauckas
Copy link
Member

Try this branch: #383 That should be it.

@lsmohan
Copy link
Author

lsmohan commented Jan 30, 2025

Thanks. The patch works on the MWE as well as the original context in which this problem arose for me.

@sathvikbhagavan
Copy link
Member

@ChrisRackauckas, can we close this as this was fixed in #383?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants