Skip to content

Commit

Permalink
[Jenkins] auto-formatting by clang-format version 10.0.0-4ubuntu1
Browse files Browse the repository at this point in the history
  • Loading branch information
stan-buildbot committed Oct 10, 2024
1 parent 443e25b commit afd9330
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions stan/math/prim/prob/wiener4_lccdf.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,11 @@ inline auto wiener4_ccdf_grad_w(const T_y& y, const T_a& a, const T_v& v,

// derivative of the wiener probability w.r.t. 'v' (on log-scale)
const auto exponent = -sign(v) * 2.0 * v * a * w;
auto prob_grad_w = (v != 0) ? exp(LOG_TWO + log(fabs(v)) + log(a) - log1m_exp(exponent)) : ret_t(1 / w);
auto prob_grad_w
= (v != 0) ? exp(LOG_TWO + log(fabs(v)) + log(a) - log1m_exp(exponent))
: ret_t(1 / w);
prob_grad_w = (v > 0) ? prob_grad_w * exp(exponent) : prob_grad_w;

const auto cdf_grad_w = wiener4_cdf_grad_w(y, a, v, w, cdf, err);
return prob_grad_w * exp(prob) - cdf_grad_w;
}
Expand Down

0 comments on commit afd9330

Please sign in to comment.