Skip to content

Commit 72d4ba8

Browse files
Update stan/math/prim/prob/yule_simon_lccdf.hpp
Co-authored-by: Steve Bronder <Stevo15025@gmail.com>
1 parent fa7d398 commit 72d4ba8

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

stan/math/prim/prob/yule_simon_lccdf.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,7 @@ inline return_type_t<T_alpha> yule_simon_lccdf(const T_n& n,
7272
log_ccdf += lgamma(ap1) + lgamma(np1) - lgamma(nap1);
7373

7474
if constexpr (!is_constant<T_alpha>::value) {
75-
auto dlogccdf_dalpha = digamma(ap1) - digamma(nap1);
76-
partials<0>(ops_partials)[i] += dlogccdf_dalpha;
75+
partials<0>(ops_partials)[i] += digamma(ap1) - digamma(nap1);
7776
}
7877
}
7978

0 commit comments

Comments
 (0)