JuliaMath / JuliaMath/Interpolations.jl

knot iterator?

Open
#346 0 comments 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.