JuliaMath / JuliaMath/Interpolations.jl
knot iterator?
Open
enhancement
- Dominant language
- Julia
- Stars
- 575
- Forks
- 117
- PR merge metrics
- No merged PRs in 30d
Description
It would be nice to provide a `knots(interpolation)` function that returned an iterator over the knot locations, since for a variety of purposed (e.g. numerical integration) it is useful to know where the discontinuities are.
#227 is a much more ambitious approach to exposing knot information, I guess, but doesn't seem incompatible with having a simple `knots(...)` that returns an iterator.
Implementation could be as simple as:
```jl
knots(itp::GriddedInterpolation) = Iterators.flatten(itp.knots)
```
maybe?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.