@@ -21,9 +21,8 @@ struct count_lpdf {
2121 count_lpdf () {}
2222
2323 // does the reduction in the sub-slice start to end
24- inline T operator ()(const std::vector<int >& sub_slice,
25- std::size_t start, std::size_t end,
26- std::ostream* msgs,
24+ inline T operator ()(const std::vector<int >& sub_slice, std::size_t start,
25+ std::size_t end, std::ostream* msgs,
2726 const std::vector<T>& lambda,
2827 const std::vector<int >& idata) const {
2928 return stan::math::poisson_lpmf (sub_slice, lambda[0 ]);
@@ -35,8 +34,8 @@ struct nesting_count_lpdf {
3534 nesting_count_lpdf () {}
3635
3736 // does the reduction in the sub-slice start to end
38- inline T operator ()(const std::vector<int >& sub_slice,
39- std::size_t start, std:: size_t end, std::ostream* msgs,
37+ inline T operator ()(const std::vector<int >& sub_slice, std:: size_t start,
38+ std::size_t end, std::ostream* msgs,
4039 const std::vector<T>& lambda,
4140 const std::vector<int >& idata) const {
4241 return stan::math::reduce_sum<count_lpdf<T>>(sub_slice, 5 , msgs, lambda,
@@ -98,9 +97,8 @@ struct slice_group_count_lpdf {
9897 slice_group_count_lpdf () {}
9998
10099 // does the reduction in the sub-slice start to end
101- inline T operator ()(const std::vector<T>& lambda_slice,
102- std::size_t start, std::size_t end,
103- std::ostream* msgs,
100+ inline T operator ()(const std::vector<T>& lambda_slice, std::size_t start,
101+ std::size_t end, std::ostream* msgs,
104102 const std::vector<int >& y,
105103 const std::vector<int >& gsidx) const {
106104 const std::size_t num_groups = end - start + 1 ;
@@ -170,8 +168,9 @@ auto reduce_sum_sum_lpdf = [](auto&& data, auto&&... args) {
170168template <int grainsize>
171169struct static_check_lpdf {
172170 template <typename T>
173- inline auto operator ()(const std::vector<int >&, std::size_t start, std::size_t end,
174- std::ostream* msgs, const std::vector<T>& data) const {
171+ inline auto operator ()(const std::vector<int >&, std::size_t start,
172+ std::size_t end, std::ostream* msgs,
173+ const std::vector<T>& data) const {
175174 T sum = 0 ;
176175 EXPECT_LE (end - start + 1 , grainsize);
177176 for (size_t i = start; i <= end; i++) {
0 commit comments