Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

knot iterator? #346

Open
stevengj opened this issue Dec 9, 2019 · 0 comments
Open

knot iterator? #346

stevengj opened this issue Dec 9, 2019 · 0 comments

Comments

@stevengj
Copy link
Member

stevengj commented Dec 9, 2019

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:

knots(itp::GriddedInterpolation) = Iterators.flatten(itp.knots)

maybe?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant