Skip to content

Commit 94dda8f

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

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

stan/math/prim/prob/yule_simon_lccdf.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ inline return_type_t<T_alpha> yule_simon_lccdf(const T_n& n,
7171
auto nap1 = n_vec.val(i) + ap1;
7272
log_ccdf += lgamma(ap1) + lgamma(np1) - lgamma(nap1);
7373

74-
if constexpr (!is_constant<T_alpha>::value) {
74+
if constexpr (is_autodiff_v<T_alpha>) {
7575
partials<0>(ops_partials)[i] += digamma(ap1) - digamma(nap1);
7676
}
7777
}

0 commit comments

Comments
 (0)