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

Repeated differentiation is not type stable #229

Open
harris-mit opened this issue Nov 3, 2022 · 0 comments
Open

Repeated differentiation is not type stable #229

harris-mit opened this issue Nov 3, 2022 · 0 comments

Comments

@harris-mit
Copy link

harris-mit commented Nov 3, 2022

The function

function differentiate(p, x, deg::Val{N}) where N
...
end

is not type stable because sometimes it throws an error.
Should this be changed to the following?

function differentiate(p, x, deg::Val{N}) where N
    for i = 1:deg
        p = differentiate(p, x)
    end
    return p
end
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

No branches or pull requests

1 participant