We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
std::tie
std::make_tuple
minimal working example:
#include "clad/Differentiator/Differentiator.h" #include "clad/Differentiator/STLBuiltins.h" #include <tuple> #include <iostream> double fnTuple(double x, double y) { double u, v = 288*x, w; std::tie(u, v, w) = std::make_tuple(x+y, 2*(x+y), 3*(x+y)); return v; } // = 2x + 2y int main(int argc, char* argv[]) { double dx = 0, dy = 0;\ auto df = clad::gradient(fnTuple); std::cout << fnTuple(3, 4) << '\n'; df.execute(3, 4, &dx, &dy); std::cout << dx << ' ' << dy << '\n'; }
The text was updated successfully, but these errors were encountered:
could be partially related to #1065
Sorry, something went wrong.
No branches or pull requests
minimal working example:
The text was updated successfully, but these errors were encountered: