Skip to content

Commit

Permalink
[Jenkins] auto-formatting by clang-format version 6.0.0-1ubuntu2 (tag…
Browse files Browse the repository at this point in the history
…s/RELEASE_600/final)
  • Loading branch information
stan-buildbot committed Apr 11, 2020
1 parent 137353e commit 766de89
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions stan/math/prim/prob/neg_binomial_2_log_lpmf.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ return_type_t<T_log_location, T_precision> neg_binomial_2_log_lpmf(
exp_eta_over_exp_eta_phi(size_eta_phi);
if (!is_constant_all<T_log_location, T_precision>::value) {
for (size_t i = 0; i < size_eta_phi; ++i) {
exp_eta_over_exp_eta_phi[i] = inv(phi_val[i] / exp_eta[i] + 1);
exp_eta_over_exp_eta_phi[i] = inv(phi_val[i] / exp_eta[i] + 1);
}
}

Expand Down Expand Up @@ -111,8 +111,8 @@ return_type_t<T_log_location, T_precision> neg_binomial_2_log_lpmf(
}
if (!is_constant_all<T_precision>::value) {
ops_partials.edge2_.partials_[i]
+= exp_eta_over_exp_eta_phi[i] - n_vec[i] / (exp_eta[i] + phi_val[i])
- log1p_exp_eta_m_logphi[i]
+= exp_eta_over_exp_eta_phi[i] - n_vec[i] / (exp_eta[i] + phi_val[i])
- log1p_exp_eta_m_logphi[i]
- (digamma(phi_val[i]) - digamma(n_plus_phi[i]));
}
}
Expand Down

0 comments on commit 766de89

Please sign in to comment.