Skip to content

Commit 507a8f5

Browse files
committed
[Jenkins] auto-formatting by clang-format version 10.0.0-4ubuntu1
1 parent aebbdf1 commit 507a8f5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

stan/math/prim/prob/geometric_lpmf.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ inline return_type_t<T_prob> geometric_lpmf(const T_n& n, const T_prob& theta) {
8181
// The select on n == 0 avoids 0 * log1m(1) = 0 * (-inf) = NaN when
8282
// theta = 1; the n > 0 && theta = 1 case was already handled above.
8383
const auto& log1m_theta = log1m(theta_arr);
84-
const auto& failure_term = select(n_arr == 0, T_partials_return(0),
85-
n_arr * log1m_theta);
84+
const auto& failure_term
85+
= select(n_arr == 0, T_partials_return(0), n_arr * log1m_theta);
8686
T_partials_return logp = sum(log(theta_arr) + failure_term);
8787

8888
if constexpr (is_autodiff_v<T_prob>) {

0 commit comments

Comments
 (0)