Skip to content

Commit 91027d9

Browse files
committed
include orders
1 parent e589a1d commit 91027d9

5 files changed

Lines changed: 17 additions & 22 deletions

File tree

stan/math/fwd/core.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,6 @@
2020
#include <stan/math/fwd/core/std_complex.hpp>
2121
#include <stan/math/fwd/core/std_numeric_limits.hpp>
2222
#include <stan/math/fwd/core/std_iterator_traits.hpp>
23+
#include <stan/math/fwd/fun/Eigen_NumTraits.hpp>
2324

2425
#endif

stan/math/fwd/fun/Eigen_NumTraits.hpp

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

44
#include <stan/math/prim/fun/Eigen.hpp>
55
#include <stan/math/prim/core.hpp>
6-
#include <stan/math/fwd/fun/read_fvar.hpp>
7-
#include <stan/math/fwd/core.hpp>
6+
#include <stan/math/fwd/core/fvar.hpp>
87
#include <stan/math/fwd/core/std_numeric_limits.hpp>
98
#include <limits>
109

@@ -216,17 +215,5 @@ struct ScalarBinaryOpTraits<std::complex<stan::math::fvar<T>>,
216215
using ReturnType = std::complex<stan::math::fvar<T>>;
217216
};
218217

219-
namespace internal {
220-
221-
/**
222-
* Enable linear access of inputs when using read_fvar.
223-
*/
224-
template <typename EigFvar, typename EigOut>
225-
struct functor_has_linear_access<
226-
stan::math::read_fvar_functor<EigFvar, EigOut>> {
227-
enum { ret = 1 };
228-
};
229-
230-
} // namespace internal
231218
} // namespace Eigen
232219
#endif

stan/math/mix/functor/laplace_marginal_density_estimator.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#include <unsupported/Eigen/MatrixFunctions>
1414
#include <cmath>
1515
#include <mutex>
16+
#include <iomanip>
1617

1718
/**
1819
* @file

stan/math/mix/prob/laplace_marginal_bernoulli_logit_lpmf.hpp

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,25 @@
11
#ifndef STAN_MATH_MIX_PROB_LAPLACE_MARGINAL_BERNOULLI_LOGIT_LPMF_HPP
22
#define STAN_MATH_MIX_PROB_LAPLACE_MARGINAL_BERNOULLI_LOGIT_LPMF_HPP
33

4+
#include <stan/math/mix/meta.hpp>
45
#include <stan/math/mix/functor/laplace_likelihood.hpp>
56
#include <stan/math/mix/functor/laplace_marginal_density.hpp>
6-
#include <stan/math/rev/core/operator_addition.hpp>
7-
#include <stan/math/rev/core/operator_subtraction.hpp>
87
#include <stan/math/rev/fun/elt_multiply.hpp>
98
#include <stan/math/rev/fun/exp.hpp>
9+
#include <stan/math/fwd/fun/exp.hpp>
1010
#include <stan/math/rev/fun/log.hpp>
11+
#include <stan/math/fwd/fun/log.hpp>
1112
#include <stan/math/rev/fun/log1p_exp.hpp>
13+
#include <stan/math/fwd/fun/log1p_exp.hpp>
1214
#include <stan/math/rev/fun/multiply.hpp>
13-
#include <stan/math/rev/fun/sum.hpp>
14-
#include <stan/math/fwd/fun/exp.hpp>
15+
#include <stan/math/fwd/fun/multiply.hpp>
16+
#include <stan/math/rev/fun/lgamma.hpp>
1517
#include <stan/math/fwd/fun/lgamma.hpp>
16-
#include <stan/math/fwd/fun/log.hpp>
17-
#include <stan/math/fwd/fun/log1p_exp.hpp>
18+
#include <stan/math/rev/fun/sum.hpp>
1819
#include <stan/math/fwd/fun/sum.hpp>
1920
#include <stan/math/prim/fun/binomial_coefficient_log.hpp>
21+
#include <stan/math/rev/fun/to_vector.hpp>
22+
#include <stan/math/prim/fun/to_vector.hpp>
2023

2124
namespace stan {
2225
namespace math {

stan/math/mix/prob/laplace_marginal_poisson_log_lpmf.hpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,15 @@
33

44
#include <stan/math/mix/functor/laplace_likelihood.hpp>
55
#include <stan/math/mix/functor/laplace_marginal_density.hpp>
6+
#include <stan/math/mix/meta.hpp>
67
#include <stan/math/rev/fun/dot_product.hpp>
78
#include <stan/math/rev/fun/exp.hpp>
8-
#include <stan/math/rev/fun/lgamma.hpp>
9-
#include <stan/math/rev/fun/sum.hpp>
109
#include <stan/math/fwd/fun/exp.hpp>
10+
#include <stan/math/rev/fun/sum.hpp>
11+
#include <stan/math/fwd/fun/sum.hpp>
1112
#include <stan/math/fwd/fun/lgamma.hpp>
13+
#include <stan/math/rev/fun/lgamma.hpp>
14+
#include <stan/math/prim/fun/add.hpp>
1215

1316
namespace stan {
1417
namespace math {

0 commit comments

Comments
 (0)