-
-
Notifications
You must be signed in to change notification settings - Fork 113
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug 🐞
> a = LinearInterpolation([1.0, 2.0], [1.0, 2.0])
LinearInterpolation{Vector{Float64}, Vector{Float64}}([1.0, 2.0], [1.0, 2.0], false)
> b = [1.0]
1-element Vector{Float64}:
1.0
> a(b, 1.1)
1-element Vector{Float64}:
1.1
> a(b, 1.0)
ERROR: MethodError: no method matching copy!(::Vector{Float64}, ::Float64)This is because of the copy! when the tval is the first one:
SciMLBase.jl/src/interpolation.jl
Line 291 in eaebe6e
| copy!(out, u[k]) |
Expected behavior
Expected behavior is that it should be interpolated properly. I don't know if this is intended. It doesn't look like it to me. Cheers.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working