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

Make Spline a subtype of Function #90

Merged
merged 3 commits into from
May 2, 2024
Merged

Make Spline a subtype of Function #90

merged 3 commits into from
May 2, 2024

Conversation

jipolanco
Copy link
Owner

Same for SplineWrapper.

This allows to use splines where a Function is expected.

One example is for plots with Makie. Instead of doing:

lines!(ax, 0..3, x -> S(x))

we can now simply do:

lines!(ax, 0..3, S)

for a spline S.

jipolanco added 3 commits May 2, 2024 10:22
This allows to use splines where a `Function` is expected.

One example is for plots with Makie. Instead of doing:

  lines!(ax, 0..3, x -> S(x))

we can now simply do:

  lines!(ax, 0..3, S)

for a spline `S`.
@jipolanco jipolanco merged commit b3c352e into master May 2, 2024
5 checks passed
@jipolanco jipolanco deleted the spline-function branch May 2, 2024 10:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant