JuliaMath / JuliaMath/Interpolations.jl
LinearInterpolation handles collect(x) but not CubicSplineInterplation
Open
- Dominant language
- Julia
- Stars
- 575
- Forks
- 117
- PR merge metrics
- No merged PRs in 30d
Description
CubicSplineInterpolation does not handle collect(), Yet LinearInterpolation does --- see minimal example below. Any suggestions on how to address this?
```using Interpolations
x = collect(1:0.1:5)
y = rand(length(x))
itp1 = LinearInterpolation(x, y; extrapolation_bc=Flat())
@show itp1(4)
@show itp1(6)
itp2 = CubicSplineInterpolation(x, y; extrapolation_bc=Flat())
@show itp2(4)
@show itp2(6)
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.