-
Notifications
You must be signed in to change notification settings - Fork 149
API for high-order scalar derivatives #187
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
@jrevels, is this issue part of your goals? It would be nice to add this functionality for, say, second order scalar derivatives. |
Is there any chance for doing this? There is an interface for calling
Is there any alternative way to calculate a value, first derivative, and a second derivative without doing redundant work, like there is using |
@DNF2 I also have an open PR (#678) where I add this functionality to this package, but it hasn't gotten anywhere yet. |
Thanks for the heads-up, @gerlero. Does that mean this works with some other backends, but not currently with ForwardDiff.jl? |
@DNF2 It works with the |
It'd be nice to use the existing
DiffBase.DiffResult
API to get higher-order scalar derivatives viaderivative!
.For example, it would be cool if you could do the following:
Currently,
derivative!
will just calculate the first derivative:cc @YingboMa
The text was updated successfully, but these errors were encountered: