diff --git a/stan/math/prim/prob/bernoulli_cdf.hpp b/stan/math/prim/prob/bernoulli_cdf.hpp index 44184399611..4add1f9b196 100644 --- a/stan/math/prim/prob/bernoulli_cdf.hpp +++ b/stan/math/prim/prob/bernoulli_cdf.hpp @@ -34,7 +34,7 @@ return_type_t bernoulli_cdf(const T_n& n, const T_prob& theta) { check_consistent_sizes(function, "Random variable", n, "Probability parameter", theta); T_theta_ref theta_ref = theta; - const auto& n_arr = as_array_or_scalar(n); + const auto& n_arr = as_value_column_array_or_scalar(n); const auto& theta_arr = as_value_column_array_or_scalar(theta_ref); check_bounded(function, "Probability parameter", theta_arr, 0.0, 1.0); diff --git a/stan/math/prim/prob/bernoulli_lccdf.hpp b/stan/math/prim/prob/bernoulli_lccdf.hpp index d6bc081c9d1..d3c9d035986 100644 --- a/stan/math/prim/prob/bernoulli_lccdf.hpp +++ b/stan/math/prim/prob/bernoulli_lccdf.hpp @@ -35,7 +35,7 @@ return_type_t bernoulli_lccdf(const T_n& n, const T_prob& theta) { check_consistent_sizes(function, "Random variable", n, "Probability parameter", theta); T_theta_ref theta_ref = theta; - const auto& n_arr = as_array_or_scalar(n); + const auto& n_arr = as_value_column_array_or_scalar(n); const auto& theta_arr = as_value_column_array_or_scalar(theta_ref); check_bounded(function, "Probability parameter", theta_arr, 0.0, 1.0); diff --git a/stan/math/prim/prob/bernoulli_lcdf.hpp b/stan/math/prim/prob/bernoulli_lcdf.hpp index 9606955f9ce..f17a51886b9 100644 --- a/stan/math/prim/prob/bernoulli_lcdf.hpp +++ b/stan/math/prim/prob/bernoulli_lcdf.hpp @@ -33,7 +33,7 @@ return_type_t bernoulli_lcdf(const T_n& n, const T_prob& theta) { check_consistent_sizes(function, "Random variable", n, "Probability parameter", theta); T_theta_ref theta_ref = theta; - const auto& n_arr = as_array_or_scalar(n); + const auto& n_arr = as_value_column_array_or_scalar(n); const auto& theta_arr = as_value_column_array_or_scalar(theta_ref); check_bounded(function, "Probability parameter", theta_arr, 0.0, 1.0);