Skip to content

Commit f38996f

Browse files
committed
add a separate file for fwd decl of broadcast array
1 parent c29b0ac commit f38996f

3 files changed

Lines changed: 16 additions & 6 deletions

File tree

stan/math/fwd/functor/broadcast_array.hpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,13 @@
33

44
#include <stan/math/prim/fun/Eigen.hpp>
55
#include <stan/math/fwd/fun/sum.hpp>
6+
#include <stan/math/prim/functor/broadcast_array_fwd.hpp>
67
#include <stan/math/prim/meta.hpp>
78

89
namespace stan {
910
namespace math {
1011
namespace internal {
1112

12-
template <typename T, typename Enable = void>
13-
class broadcast_array;
14-
1513
template <typename T>
1614
class broadcast_array<T, require_st_fvar<T>> {
1715
private:

stan/math/prim/functor/broadcast_array.hpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#ifndef STAN_MATH_PRIM_META_BROADCAST_ARRAY_HPP
22
#define STAN_MATH_PRIM_META_BROADCAST_ARRAY_HPP
33

4+
#include <stan/math/prim/functor/broadcast_array_fwd.hpp>
45
#include <stan/math/prim/meta/is_eigen.hpp>
56
#include <stan/math/prim/meta/is_var_or_arithmetic.hpp>
67
#include <stan/math/prim/meta/promote_scalar_type.hpp>
@@ -14,9 +15,6 @@ namespace stan {
1415
namespace math {
1516
namespace internal {
1617

17-
template <typename T, typename Enable = void>
18-
class broadcast_array;
19-
2018
template <typename T>
2119
class broadcast_array<T, require_t<is_var_or_arithmetic<T>>> {
2220
private:
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#ifndef STAN_MATH_PRIM_META_BROADCAST_ARRAY_FWD_HPP
2+
#define STAN_MATH_PRIM_META_BROADCAST_ARRAY_FWD_HPP
3+
4+
namespace stan {
5+
namespace math {
6+
namespace internal {
7+
8+
template <typename T, typename Enable = void>
9+
class broadcast_array;
10+
11+
} // namespace internal
12+
} // namespace math
13+
} // namespace stan
14+
#endif

0 commit comments

Comments
 (0)