-
Notifications
You must be signed in to change notification settings - Fork 122
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
Regression in clad
master in dealing with templated functions
#922
Comments
@guitargeek, do you have an idea which commit broke it? There are 17 or so since the tag... |
@PetroZarytskyi I just checked that this got introduced in #904. I have created a very minimal reproducer below. Can you look into this once? #include "clad/Differentiator/Differentiator.h"
double f(double x) {
return x + (x > 0 ? 1.0 : 0.0);
}
int main() {
auto f_dx = clad::gradient(f);
double dx = 0;
f_dx.execute(3, &dx);
std::cout << dx << std::endl;
return 0;
} |
PetroZarytskyi
added a commit
to PetroZarytskyi/clad
that referenced
this issue
Jun 7, 2024
vgvassilev
pushed a commit
that referenced
this issue
Jun 7, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This was noticed when running the RooFit unit tests with clad
master
.Reproducer (ROOT macro, but should be easy to turn into compiled executable):
Output:
The text was updated successfully, but these errors were encountered: