Skip to content

Commit e589a1d

Browse files
committed
update header include orders
1 parent a91d878 commit e589a1d

6 files changed

Lines changed: 15 additions & 24 deletions

File tree

stan/math/mix.hpp

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,9 @@
55
#include <stan/math/rev/core/Eigen_NumTraits.hpp>
66
#include <stan/math/prim/fun/Eigen.hpp>
77

8-
#include <stan/math/rev/constraint.hpp>
9-
#include <stan/math/rev/core.hpp>
10-
#include <stan/math/rev/meta.hpp>
11-
#include <stan/math/rev/fun.hpp>
12-
#include <stan/math/rev/functor.hpp>
13-
#include <stan/math/rev/prob.hpp>
8+
#include <stan/math/mix/meta.hpp>
9+
#include <stan/math/mix/fun.hpp>
10+
#include <stan/math/mix/functor.hpp>
1411

1512
#include <stan/math/fwd/constraint.hpp>
1613
#include <stan/math/fwd/core.hpp>
@@ -19,16 +16,20 @@
1916
#include <stan/math/fwd/functor.hpp>
2017
#include <stan/math/fwd/prob.hpp>
2118

19+
#include <stan/math/rev/constraint.hpp>
20+
#include <stan/math/rev/core.hpp>
21+
#include <stan/math/rev/meta.hpp>
22+
#include <stan/math/rev/fun.hpp>
23+
#include <stan/math/rev/functor.hpp>
24+
#include <stan/math/rev/prob.hpp>
25+
2226
#ifdef STAN_OPENCL
2327
#include <stan/math/opencl/rev.hpp>
2428
#include <stan/math/opencl/rev_constraint.hpp>
2529
#endif
2630

2731
#include <stan/math/prim.hpp>
2832

29-
#include <stan/math/mix/meta.hpp>
30-
#include <stan/math/mix/fun.hpp>
31-
#include <stan/math/mix/functor.hpp>
3233
#include <stan/math/mix/prob.hpp>
3334

3435
#endif

stan/math/mix/functor/laplace_likelihood.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
#define STAN_MATH_MIX_FUNCTOR_LAPLACE_LIKELIHOOD_HPP
33

44
#include <stan/math/prim/fun/Eigen.hpp>
5-
#include <stan/math/rev/core.hpp>
6-
#include <stan/math/rev/meta.hpp>
5+
#include <stan/math/mix/meta.hpp>
76
#include <stan/math/rev/fun/grad.hpp>
87
#include <stan/math/prim/functor/conditional_copy_and_promote.hpp>
98
#include <stan/math/prim/functor/apply.hpp>

stan/math/mix/functor/laplace_marginal_density.hpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,7 @@
44
#include <stan/math/mix/functor/laplace_likelihood.hpp>
55
#include <stan/math/mix/functor/laplace_marginal_density_estimator.hpp>
66
#include <stan/math/prim/functor/conditional_copy_and_promote.hpp>
7-
#include <stan/math/rev/meta.hpp>
8-
#include <stan/math/rev/core.hpp>
9-
#include <stan/math/rev/fun.hpp>
10-
#include <stan/math/rev/functor.hpp>
7+
#include <stan/math/mix/meta.hpp>
118
#include <stan/math/prim/fun/to_ref.hpp>
129
#include <stan/math/prim/functor/iter_tuple_nested.hpp>
1310
#include <unsupported/Eigen/MatrixFunctions>

stan/math/mix/functor/laplace_marginal_density_estimator.hpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,8 @@
44
#include <stan/math/prim/fun/generate_laplace_options.hpp>
55
#include <stan/math/mix/functor/laplace_likelihood.hpp>
66
#include <stan/math/mix/functor/wolfe_line_search.hpp>
7-
#include <stan/math/rev/meta.hpp>
8-
#include <stan/math/rev/core.hpp>
9-
#include <stan/math/rev/fun.hpp>
10-
#include <stan/math/rev/functor.hpp>
117
#include <stan/math/mix/functor/barzilai_borwein_step_size.hpp>
8+
#include <stan/math/mix/meta.hpp>
129
#include <stan/math/prim/fun/to_ref.hpp>
1310
#include <stan/math/prim/fun/quad_form_diag.hpp>
1411
#include <stan/math/prim/fun/value_of.hpp>

stan/math/mix/functor/wolfe_line_search.hpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,8 @@
33

44
#include <stan/math/prim/fun/Eigen.hpp>
55
#include <stan/math/mix/functor/laplace_likelihood.hpp>
6-
#include <stan/math/rev/meta.hpp>
7-
#include <stan/math/rev/core.hpp>
8-
#include <stan/math/rev/fun.hpp>
6+
#include <stan/math/mix/meta.hpp>
97
#include <stan/math/rev/fun/value_of.hpp>
10-
#include <stan/math/rev/functor.hpp>
118
#include <stan/math/prim/fun/to_ref.hpp>
129
#include <stan/math/prim/fun/quad_form_diag.hpp>
1310
#include <stan/math/prim/functor/iter_tuple_nested.hpp>

stan/math/prim/functor/broadcast_array.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class broadcast_array {
3131
*/
3232
template <typename Y>
3333
void operator=(const Y& m) {
34-
prim_.get() = sum(m);
34+
prim_.get() = stan::math::sum(m);
3535
}
3636
};
3737

0 commit comments

Comments
 (0)