We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cabafd6 commit 47c4f9aCopy full SHA for 47c4f9a
1 file changed
stan/math/prim/prob/bernoulli_lccdf.hpp
@@ -55,7 +55,7 @@ return_type_t<T_prob> bernoulli_lccdf(const T_n& n, const T_prob& theta) {
55
56
size_t theta_size = math::size(theta_arr);
57
size_t n_size = math::size(n_arr);
58
- double broadcast_n = theta_size == n_size ? 1 : std::fmax(theta_size, n_size);
+ double broadcast_n = theta_size == n_size ? 1 : n_size;
59
60
if (!is_constant_all<T_prob>::value) {
61
partials<0>(ops_partials) = inv(theta_arr) * broadcast_n;
0 commit comments