JuliaMath / JuliaMath/Interpolations.jl

Gridded interpolation with single knot

Open
#497 2 comments 1 reaction 0 assignees View on GitHub
Dominant language
Julia
Stars
575
Forks
117
PR merge metrics
No merged PRs in 30d

Description

https://github.com/JuliaMath/Interpolations.jl/blob/4316c044da4594783b287048e0fbaa7c885ca408/src/gridded/gridded.jl#L74

In this line of `gridded.jl`, `length(k1) == 1` is disabled. But when I just remove that line, I get expected behavior:
```julia
f = interpolate(([1.],), [5.], Gridded(Constant()))
@test bounds(f) == ((1., 1.),)
@test f(1.) == 5.0
@test_throws BoundsError f(nextfloat(1.))
@test_throws BoundsError f(prevfloat(1.))
```

Can we just remove that line? Or is there something not implemented?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.