You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#include"clad/Differentiator/Differentiator.h"doublemysin(double x) { returnstd::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.
The text was updated successfully, but these errors were encountered:
Outputs:
The text was updated successfully, but these errors were encountered: