-
Notifications
You must be signed in to change notification settings - Fork 165
Description
Description
Clad currently lacks the symbolic derivative rule for the C++17 special math function std::comp_ellint_1 (Complete Elliptic Integral of the First Kind).
Current Behavior
When differentiating code that uses this function, Clad fails to find a suitable overload and falls back to numerical differentiation. This results in the following warning during compilation:
warning: falling back to numerical differentiation for 'comp_ellint_1' since no suitable overload was found
Expected Behavior
Clad should support the analytical derivative of
The formula for the derivative is:
Proposed Solution
I intend to implement the forward-mode pushforward for this function in BuiltinDerivatives.h, utilizing std::comp_ellint_2 for the