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

LinearInterpolation Errors when interpolating Vector{Array} #116

Closed
dafred94 opened this issue Apr 26, 2022 · 2 comments
Closed

LinearInterpolation Errors when interpolating Vector{Array} #116

dafred94 opened this issue Apr 26, 2022 · 2 comments

Comments

@dafred94
Copy link

dafred94 commented Apr 26, 2022

t = Float64[0, 1, 2]
y = [i*ones(2) for i in 0:2]
interp = LinearInterpolation(y, t)

interp(1.0) # errors
interp(1.001) # works

The error that I see is:
ERROR: MethodError: no method matching isnan(::Vector{Float64})

It seems like the argument to interp may not be equal to any entry in t.

@ChrisRackauckas
Copy link
Member

@GlenHertz this might've been introduced by your change?

@sathvikbhagavan
Copy link
Member

This works.. @ChrisRackauckas can we close this?

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