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

Using local_nested_autodiff for all instances of nested autodiff #1706

Merged
Prev Previous commit
[Jenkins] auto-formatting by clang-format version 5.0.0-3~16.04.1 (ta…
…gs/RELEASE_500/final)
  • Loading branch information
stan-buildbot committed Feb 19, 2020
commit f3f01a3877d60aad8f97d9463623bf1d7f40fcca
6 changes: 3 additions & 3 deletions stan/math/rev/functor/coupled_ode_system.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ struct coupled_ode_system<F, double, var> {
// Run nested autodiff in this scope
nested_rev_autodiff nested;

vector<var> y_vars(z.begin(), z.begin() + N_);
vector<var> y_vars(z.begin(), z.begin() + N_);

vector<var> dy_dt_vars = f_(t, y_vars, theta_nochain_, x_, x_int_, msgs_);

Expand Down Expand Up @@ -271,7 +271,7 @@ struct coupled_ode_system<F, var, double> {
// Run nested autodiff in this scope
nested_rev_autodiff nested;

vector<var> y_vars(z.begin(), z.begin() + N_);
vector<var> y_vars(z.begin(), z.begin() + N_);

vector<var> dy_dt_vars = f_(t, y_vars, theta_dbl_, x_, x_int_, msgs_);

Expand Down Expand Up @@ -444,7 +444,7 @@ struct coupled_ode_system<F, var, var> {
// Run nested autodiff in this scope
nested_rev_autodiff nested;

vector<var> y_vars(z.begin(), z.begin() + N_);
vector<var> y_vars(z.begin(), z.begin() + N_);

vector<var> dy_dt_vars = f_(t, y_vars, theta_nochain_, x_, x_int_, msgs_);

Expand Down