Skip to content

Commit 42bc0c1

Browse files
authored
Merge pull request #2954 from stan-dev/fix-bernoulli-dist-tests
Fix Row-Vector Distribution test failures
2 parents 598dba7 + 0047f43 commit 42bc0c1

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

stan/math/prim/prob/bernoulli_cdf.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ return_type_t<T_prob> bernoulli_cdf(const T_n& n, const T_prob& theta) {
3434
check_consistent_sizes(function, "Random variable", n,
3535
"Probability parameter", theta);
3636
T_theta_ref theta_ref = theta;
37-
const auto& n_arr = as_array_or_scalar(n);
37+
const auto& n_arr = as_value_column_array_or_scalar(n);
3838
const auto& theta_arr = as_value_column_array_or_scalar(theta_ref);
3939
check_bounded(function, "Probability parameter", theta_arr, 0.0, 1.0);
4040

stan/math/prim/prob/bernoulli_lccdf.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ return_type_t<T_prob> bernoulli_lccdf(const T_n& n, const T_prob& theta) {
3535
check_consistent_sizes(function, "Random variable", n,
3636
"Probability parameter", theta);
3737
T_theta_ref theta_ref = theta;
38-
const auto& n_arr = as_array_or_scalar(n);
38+
const auto& n_arr = as_value_column_array_or_scalar(n);
3939
const auto& theta_arr = as_value_column_array_or_scalar(theta_ref);
4040
check_bounded(function, "Probability parameter", theta_arr, 0.0, 1.0);
4141

stan/math/prim/prob/bernoulli_lcdf.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ return_type_t<T_prob> bernoulli_lcdf(const T_n& n, const T_prob& theta) {
3333
check_consistent_sizes(function, "Random variable", n,
3434
"Probability parameter", theta);
3535
T_theta_ref theta_ref = theta;
36-
const auto& n_arr = as_array_or_scalar(n);
36+
const auto& n_arr = as_value_column_array_or_scalar(n);
3737
const auto& theta_arr = as_value_column_array_or_scalar(theta_ref);
3838
check_bounded(function, "Probability parameter", theta_arr, 0.0, 1.0);
3939

0 commit comments

Comments
 (0)