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

Support higher order custom derivatives #313

Closed
vgvassilev opened this issue Oct 17, 2021 · 0 comments · Fixed by #786
Closed

Support higher order custom derivatives #313

vgvassilev opened this issue Oct 17, 2021 · 0 comments · Fixed by #786
Assignees
Milestone

Comments

@vgvassilev
Copy link
Owner

vgvassilev commented Oct 17, 2021

#include "clad/Differentiator/Differentiator.h"

double mysin(double x) { return std::sin(x); }
auto g = clad::differentiate<2>(mysin);

Outputs:

T.cpp:12:42: warning: function 'sin_darg0' was not differentiated because clad failed to differentiate it and no suitable overload was found in namespace 'custom_derivatives', and function may not be eligible for numerical differentiation.
double mysin(double x) { return std::sin(x); }
                                         ^
2 warnings generated.
@vgvassilev vgvassilev modified the milestones: v1.5, v1.4 Feb 7, 2024
aaronj0 added a commit to aaronj0/clad that referenced this issue Feb 23, 2024
aaronj0 added a commit to aaronj0/clad that referenced this issue Feb 24, 2024
- was incorrectly calling genfunc.execute() instead of genfunc
- Fixes vgvassilev#313
aaronj0 added a commit to aaronj0/clad that referenced this issue Feb 27, 2024
vgvassilev pushed a commit that referenced this issue Feb 28, 2024
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 a pull request may close this issue.

2 participants