We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent adc7c49 commit 37558aeCopy full SHA for 37558ae
cpp/examples/ad_odeint_example.cpp
@@ -56,6 +56,7 @@ int main()
56
x[0] = 1.0; // start at x=1.0, p=0.0
57
x[1] = 0.0;
58
ad::derivative(x[0]) = 1.0; // compute derivative with respect to x[0] (scalar tangent-linear mode)
59
+ ad::derivative(x[0]) = 0.0;
60
61
auto t0 = time_type(0.0); // initial time
62
auto t_end = time_type(10.0); // stop time
0 commit comments