Skip to content

Commit 09b96d7

Browse files
committed
Test fixes
1 parent c72e175 commit 09b96d7

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

stan/math/prim/prob/poisson_binomial_cdf.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ return_type_t<T_theta> poisson_binomial_cdf(const T_y& y,
3737
const T_theta& theta) {
3838
static constexpr const char* function = "poisson_binomial_cdf";
3939

40-
size_t size_theta = size_mvt(theta);
40+
auto size_theta = size_mvt(theta);
4141
if (size_theta > 1) {
4242
check_consistent_sizes(function, "Successes variables", y,
4343
"Probability parameters", theta);
4444
}
4545

46-
size_t max_sz = std::max(stan::math::size(y), size_theta);
46+
auto max_sz = std::max(stan::math::size(y), size_theta);
4747
scalar_seq_view<T_y> y_vec(y);
4848
vector_seq_view<T_theta> theta_vec(theta);
4949

stan/math/prim/prob/poisson_binomial_lccdf.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,13 @@ return_type_t<T_theta> poisson_binomial_lccdf(const T_y& y,
3838
const T_theta& theta) {
3939
static constexpr const char* function = "poisson_binomial_lccdf";
4040

41-
size_t size_theta = size_mvt(theta);
41+
auto size_theta = size_mvt(theta);
4242
if (size_theta > 1) {
4343
check_consistent_sizes(function, "Successes variables", y,
4444
"Probability parameters", theta);
4545
}
4646

47-
size_t max_sz = std::max(stan::math::size(y), size_mvt(theta));
47+
auto max_sz = std::max(stan::math::size(y), size_mvt(theta));
4848
scalar_seq_view<T_y> y_vec(y);
4949
vector_seq_view<T_theta> theta_vec(theta);
5050

stan/math/prim/prob/poisson_binomial_lcdf.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ return_type_t<T_theta> poisson_binomial_lcdf(const T_y& y,
3737
const T_theta& theta) {
3838
static constexpr const char* function = "poisson_binomial_lcdf";
3939

40-
size_t size_theta = size_mvt(theta);
40+
auto size_theta = size_mvt(theta);
4141
if (size_theta > 1) {
4242
check_consistent_sizes(function, "Successes variables", y,
4343
"Probability parameters", theta);
4444
}
4545

46-
size_t max_sz = std::max(stan::math::size(y), size_theta);
46+
auto max_sz = std::max(stan::math::size(y), size_theta);
4747
scalar_seq_view<T_y> y_vec(y);
4848
vector_seq_view<T_theta> theta_vec(theta);
4949

stan/math/prim/prob/poisson_binomial_lpmf.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@ return_type_t<T_theta> poisson_binomial_lpmf(const T_y& y,
2929
const T_theta& theta) {
3030
static constexpr const char* function = "poisson_binomial_lpmf";
3131

32-
size_t size_theta = size_mvt(theta);
32+
auto size_theta = size_mvt(theta);
3333
if (size_theta > 1) {
3434
check_consistent_sizes(function, "Successes variables", y,
3535
"Probability parameters", theta);
3636
}
3737

38-
size_t max_sz = std::max(stan::math::size(y), size_theta);
38+
auto max_sz = std::max(stan::math::size(y), size_theta);
3939
scalar_seq_view<T_y> y_vec(y);
4040
vector_seq_view<T_theta> theta_vec(theta);
4141

0 commit comments

Comments
 (0)