-
-
Notifications
You must be signed in to change notification settings - Fork 47
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
Broken extrapolation with integer interpolation #378
Comments
Funnily but unfortunately, in the last PR @SouthEndMusic added a test that would have caught this already if it weren't true that
|
Me and @visr are also interested in extrapolation of integer constant interpolation. I vaguely remember why I implemented this like this: some type inference tests (I think for |
I tried it and it indeed fails to stably infer the output for some
|
I'd say option 2 is the nicest indeed |
Specialize ConstantInterpolation extrapolation (address #378)
I'm not sure if integer interpolation is something intended to be supported by the package; i.e. for integer
u
, you can define aConstantInterpolation
- other interpolations get you a non-integer by definition. If so, this is broken as of 7.0.1The reason is that the extrapolation code path (
DataInterpolations.jl/src/interpolation_methods.jl
Line 15 in c4de75e
where both terms inside the
zero(_)
call turn into floats. Is there any drawback to just returninglast(A.u)
in that branch? Obviously this is fairly niche usage, but maybe there's other legitimate type combinations where analogous issues happen.The text was updated successfully, but these errors were encountered: