Skip to content

Commit 3aff9f9

Browse files
committed
fix header includes to not use plain prim/functor.hpp in several headers
1 parent bb536a5 commit 3aff9f9

6 files changed

Lines changed: 5 additions & 6 deletions

File tree

stan/math/mix/functor/laplace_likelihood.hpp

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

44
#include <stan/math/mix/functor/hessian_block_diag.hpp>
55
#include <stan/math/mix/functor/conditional_copy_and_promote.hpp>
6-
#include <stan/math/prim/functor.hpp>
6+
#include <stan/math/prim/functor/apply.hpp>
77
#include <stan/math/prim/fun.hpp>
88

99
namespace stan {

stan/math/prim/prob/bernoulli_lcdf.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#include <stan/math/prim/fun/constants.hpp>
88
#include <stan/math/prim/fun/select.hpp>
99
#include <stan/math/prim/fun/size_zero.hpp>
10+
#include <stan/math/prim/fun/sum.hpp>
1011
#include <stan/math/prim/functor/partials_propagator.hpp>
1112

1213
namespace stan {

stan/math/rev/fun/to_arena.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
#include <stan/math/prim/fun/Eigen.hpp>
55
#include <stan/math/rev/meta.hpp>
66
#include <stan/math/rev/core/arena_matrix.hpp>
7-
#include <stan/math/prim/functor.hpp>
87
#include <vector>
98
#include <cstring>
109

stan/math/rev/functor/finite_diff_hessian_auto.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
#include <stan/math/rev/meta.hpp>
55
#include <stan/math/rev/core.hpp>
66
#include <stan/math/prim/fun/Eigen.hpp>
7-
#include <stan/math/rev/functor.hpp>
87
#include <stan/math/prim/fun/finite_diff_stepsize.hpp>
98
#include <stdexcept>
109

stan/math/rev/functor/finite_diff_hessian_times_vector_auto.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
#ifndef STAN_MATH_REV_FUNCTOR_HESSIAN_TIMES_VECTOR_HPP
22
#define STAN_MATH_REV_FUNCTOR_HESSIAN_TIMES_VECTOR_HPP
33

4+
#include <stan/math/prim/fun/Eigen.hpp>
45
#include <stan/math/prim/fun/constants.hpp>
56
#include <stan/math/rev/meta.hpp>
67
#include <stan/math/rev/core.hpp>
7-
#include <stan/math/prim/fun/Eigen.hpp>
8-
#include <stan/math/rev/functor.hpp>
8+
#include <stan/math/rev/functor/gradient.hpp>
99
#include <cmath>
1010

1111
namespace stan {

stan/math/rev/functor/reduce_sum.hpp

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

44
#include <stan/math/prim/meta.hpp>
5-
#include <stan/math/prim/functor.hpp>
5+
#include <stan/math/prim/functor/reduce_sum.hpp>
66
#include <stan/math/rev/core.hpp>
77

88
#include <tbb/task_arena.h>

0 commit comments

Comments
 (0)