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

No overload found in numerical_diff namespace #1128

Open
ovdiiuv opened this issue Nov 1, 2024 · 0 comments
Open

No overload found in numerical_diff namespace #1128

ovdiiuv opened this issue Nov 1, 2024 · 0 comments

Comments

@ovdiiuv
Copy link
Collaborator

ovdiiuv commented Nov 1, 2024

Reproducer:

//Compile with clang -std=c++11 -I /path/to/include -fplugin=/path/to/clad.so -Xclang -plugin-arg-clad -Xclang -fgenerate-source-file -lm
#include "clad/Differentiator/Differentiator.h"

inline double LnGamma(double x) { return std::lgamma(x); }

int main(){
   clad::gradient(LnGamma);
}

Compiling the source file would give us:

Derivatives.cpp:7:20: error: no matching function for call to 'forward_central_difference'
    7 |         _r0 += 1 * numerical_diff::forward_central_difference(std::lgamma, x, 0, 0, x);
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