Skip to content

Move vectorize files to meta folder #1661

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 31, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion stan/math/fwd.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

#include <stan/math/fwd/core.hpp>
#include <stan/math/fwd/meta.hpp>
#include <stan/math/fwd/vectorize.hpp>
#include <stan/math/prim.hpp>

#include <stan/math/fwd/fun.hpp>
Expand Down
3 changes: 1 addition & 2 deletions stan/math/fwd/fun/log_softmax.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@

#include <stan/math/fwd/core.hpp>
#include <stan/math/fwd/fun/softmax.hpp>
#include <stan/math/prim/meta.hpp>
#include <stan/math/prim/fun/Eigen.hpp>
#include <stan/math/prim/fun/log_softmax.hpp>
#include <stan/math/prim/fun/softmax.hpp>
#include <stan/math/prim/meta.hpp>
#include <stan/math/prim/vectorize/apply_vector_unary.hpp>

namespace stan {
namespace math {
Expand Down
2 changes: 1 addition & 1 deletion stan/math/fwd/fun/log_sum_exp.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@

#include <stan/math/fwd/meta.hpp>
#include <stan/math/fwd/core.hpp>
#include <stan/math/prim/meta.hpp>
#include <stan/math/prim/fun/Eigen.hpp>
#include <stan/math/prim/fun/constants.hpp>
#include <stan/math/prim/fun/log_sum_exp.hpp>
#include <stan/math/prim/vectorize/apply_vector_unary.hpp>
#include <cmath>
#include <vector>

Expand Down
1 change: 1 addition & 0 deletions stan/math/fwd/meta.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#ifndef STAN_MATH_FWD_META_HPP
#define STAN_MATH_FWD_META_HPP

#include <stan/math/fwd/meta/apply_scalar_unary.hpp>
#include <stan/math/fwd/meta/is_fvar.hpp>
#include <stan/math/fwd/meta/partials_type.hpp>
#include <stan/math/fwd/meta/operands_and_partials.hpp>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef STAN_MATH_FWD_VECTORIZE_APPLY_SCALAR_UNARY_HPP
#define STAN_MATH_FWD_VECTORIZE_APPLY_SCALAR_UNARY_HPP
#ifndef STAN_MATH_FWD_META_APPLY_SCALAR_UNARY_HPP
#define STAN_MATH_FWD_META_APPLY_SCALAR_UNARY_HPP

#include <stan/math/prim/vectorize/apply_scalar_unary.hpp>
#include <stan/math/prim/meta/apply_scalar_unary.hpp>
#include <stan/math/fwd/core/fvar.hpp>

namespace stan {
Expand Down
6 changes: 0 additions & 6 deletions stan/math/fwd/vectorize.hpp

This file was deleted.

1 change: 0 additions & 1 deletion stan/math/prim.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,5 @@
#include <stan/math/prim/fun.hpp>
#include <stan/math/prim/functor.hpp>
#include <stan/math/prim/prob.hpp>
#include <stan/math/prim/vectorize.hpp>

#endif
1 change: 0 additions & 1 deletion stan/math/prim/fun/Phi.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#include <stan/math/prim/fun/erf.hpp>
#include <stan/math/prim/fun/erfc.hpp>
#include <stan/math/prim/fun/Phi.hpp>
#include <stan/math/prim/vectorize/apply_scalar_unary.hpp>

namespace stan {
namespace math {
Expand Down
1 change: 0 additions & 1 deletion stan/math/prim/fun/Phi_approx.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

#include <stan/math/prim/meta.hpp>
#include <stan/math/prim/fun/inv_logit.hpp>
#include <stan/math/prim/vectorize/apply_scalar_unary.hpp>
#include <cmath>

namespace stan {
Expand Down
3 changes: 1 addition & 2 deletions stan/math/prim/fun/acos.hpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
#ifndef STAN_MATH_PRIM_FUN_ACOS_HPP
#define STAN_MATH_PRIM_FUN_ACOS_HPP

#include <stan/math/prim/fun/Eigen.hpp>
#include <stan/math/prim/meta.hpp>
#include <stan/math/prim/vectorize/apply_scalar_unary.hpp>
#include <stan/math/prim/fun/Eigen.hpp>
#include <cmath>

namespace stan {
Expand Down
1 change: 0 additions & 1 deletion stan/math/prim/fun/acosh.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
#include <stan/math/prim/err.hpp>
#include <stan/math/prim/fun/is_inf.hpp>
#include <stan/math/prim/fun/is_nan.hpp>
#include <stan/math/prim/vectorize/apply_scalar_unary.hpp>
#include <cmath>

namespace stan {
Expand Down
1 change: 0 additions & 1 deletion stan/math/prim/fun/asin.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

#include <stan/math/prim/meta.hpp>
#include <stan/math/prim/fun/Eigen.hpp>
#include <stan/math/prim/vectorize/apply_scalar_unary.hpp>
#include <cmath>

namespace stan {
Expand Down
1 change: 0 additions & 1 deletion stan/math/prim/fun/asinh.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#define STAN_MATH_PRIM_FUN_ASINH_HPP

#include <stan/math/prim/meta.hpp>
#include <stan/math/prim/vectorize/apply_scalar_unary.hpp>
#include <cmath>

namespace stan {
Expand Down
1 change: 0 additions & 1 deletion stan/math/prim/fun/atan.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

#include <stan/math/prim/meta.hpp>
#include <stan/math/prim/fun/Eigen.hpp>
#include <stan/math/prim/vectorize/apply_scalar_unary.hpp>
#include <cmath>

namespace stan {
Expand Down
1 change: 0 additions & 1 deletion stan/math/prim/fun/atanh.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
#include <stan/math/prim/meta.hpp>
#include <stan/math/prim/err.hpp>
#include <stan/math/prim/fun/is_nan.hpp>
#include <stan/math/prim/vectorize/apply_scalar_unary.hpp>
#include <cmath>

namespace stan {
Expand Down
1 change: 0 additions & 1 deletion stan/math/prim/fun/cbrt.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#define STAN_MATH_PRIM_FUN_CBRT_HPP

#include <stan/math/prim/meta.hpp>
#include <stan/math/prim/vectorize/apply_scalar_unary.hpp>
#include <cmath>

namespace stan {
Expand Down
3 changes: 1 addition & 2 deletions stan/math/prim/fun/ceil.hpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
#ifndef STAN_MATH_PRIM_FUN_CEIL_HPP
#define STAN_MATH_PRIM_FUN_CEIL_HPP

#include <stan/math/prim/fun/Eigen.hpp>
#include <stan/math/prim/meta.hpp>
#include <stan/math/prim/vectorize/apply_scalar_unary.hpp>
#include <stan/math/prim/fun/Eigen.hpp>
#include <cmath>

namespace stan {
Expand Down
1 change: 0 additions & 1 deletion stan/math/prim/fun/cos.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

#include <stan/math/prim/meta.hpp>
#include <stan/math/prim/fun/Eigen.hpp>
#include <stan/math/prim/vectorize/apply_scalar_unary.hpp>
#include <cmath>

namespace stan {
Expand Down
3 changes: 1 addition & 2 deletions stan/math/prim/fun/cosh.hpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
#ifndef STAN_MATH_PRIM_FUN_COSH_HPP
#define STAN_MATH_PRIM_FUN_COSH_HPP

#include <stan/math/prim/fun/Eigen.hpp>
#include <stan/math/prim/meta.hpp>
#include <stan/math/prim/vectorize/apply_scalar_unary.hpp>
#include <stan/math/prim/fun/Eigen.hpp>
#include <cmath>

namespace stan {
Expand Down
1 change: 0 additions & 1 deletion stan/math/prim/fun/digamma.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

#include <stan/math/prim/meta.hpp>
#include <stan/math/prim/fun/boost_policy.hpp>
#include <stan/math/prim/vectorize/apply_scalar_unary.hpp>
#include <boost/math/special_functions/digamma.hpp>

namespace stan {
Expand Down
1 change: 0 additions & 1 deletion stan/math/prim/fun/erf.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#define STAN_MATH_PRIM_FUN_ERF_HPP

#include <stan/math/prim/meta.hpp>
#include <stan/math/prim/vectorize/apply_scalar_unary.hpp>
#include <cmath>

namespace stan {
Expand Down
1 change: 0 additions & 1 deletion stan/math/prim/fun/erfc.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#define STAN_MATH_PRIM_FUN_ERFC_HPP

#include <stan/math/prim/meta.hpp>
#include <stan/math/prim/vectorize/apply_scalar_unary.hpp>
#include <cmath>

namespace stan {
Expand Down
1 change: 0 additions & 1 deletion stan/math/prim/fun/exp.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

#include <stan/math/prim/meta.hpp>
#include <stan/math/prim/fun/Eigen.hpp>
#include <stan/math/prim/vectorize/apply_scalar_unary.hpp>
#include <cmath>

namespace stan {
Expand Down
1 change: 0 additions & 1 deletion stan/math/prim/fun/exp2.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#define STAN_MATH_PRIM_FUN_EXP2_HPP

#include <stan/math/prim/meta.hpp>
#include <stan/math/prim/vectorize/apply_scalar_unary.hpp>
#include <cmath>

namespace stan {
Expand Down
1 change: 0 additions & 1 deletion stan/math/prim/fun/expm1.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#define STAN_MATH_PRIM_FUN_EXPM1_HPP

#include <stan/math/prim/meta.hpp>
#include <stan/math/prim/vectorize/apply_scalar_unary.hpp>
#include <cmath>

namespace stan {
Expand Down
1 change: 0 additions & 1 deletion stan/math/prim/fun/fabs.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

#include <stan/math/prim/meta.hpp>
#include <stan/math/prim/fun/Eigen.hpp>
#include <stan/math/prim/vectorize/apply_scalar_unary.hpp>
#include <cmath>

namespace stan {
Expand Down
1 change: 0 additions & 1 deletion stan/math/prim/fun/floor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

#include <stan/math/prim/meta.hpp>
#include <stan/math/prim/fun/Eigen.hpp>
#include <stan/math/prim/vectorize/apply_scalar_unary.hpp>
#include <cmath>

namespace stan {
Expand Down
1 change: 0 additions & 1 deletion stan/math/prim/fun/inv.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

#include <stan/math/prim/meta.hpp>
#include <stan/math/prim/fun/Eigen.hpp>
#include <stan/math/prim/vectorize/apply_scalar_unary.hpp>

namespace stan {
namespace math {
Expand Down
1 change: 0 additions & 1 deletion stan/math/prim/fun/inv_Phi.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#include <stan/math/prim/fun/log1m.hpp>
#include <stan/math/prim/fun/Phi.hpp>
#include <stan/math/prim/fun/square.hpp>
#include <stan/math/prim/vectorize/apply_scalar_unary.hpp>
#include <cmath>

namespace stan {
Expand Down
1 change: 0 additions & 1 deletion stan/math/prim/fun/inv_cloglog.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

#include <stan/math/prim/meta.hpp>
#include <stan/math/prim/fun/exp.hpp>
#include <stan/math/prim/vectorize/apply_scalar_unary.hpp>
#include <cmath>

namespace stan {
Expand Down
1 change: 0 additions & 1 deletion stan/math/prim/fun/inv_logit.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

#include <stan/math/prim/meta.hpp>
#include <stan/math/prim/fun/constants.hpp>
#include <stan/math/prim/vectorize/apply_scalar_unary.hpp>
#include <cmath>

namespace stan {
Expand Down
1 change: 0 additions & 1 deletion stan/math/prim/fun/inv_sqrt.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
#include <stan/math/prim/meta.hpp>
#include <stan/math/prim/fun/Eigen.hpp>
#include <stan/math/prim/fun/inv.hpp>
#include <stan/math/prim/vectorize/apply_scalar_unary.hpp>
#include <cmath>

namespace stan {
Expand Down
2 changes: 1 addition & 1 deletion stan/math/prim/fun/inv_square.hpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#ifndef STAN_MATH_PRIM_FUN_INV_SQUARE_HPP
#define STAN_MATH_PRIM_FUN_INV_SQUARE_HPP

#include <stan/math/prim/meta.hpp>
#include <stan/math/prim/fun/inv.hpp>
#include <stan/math/prim/fun/square.hpp>
#include <stan/math/prim/fun/inv_square.hpp>
#include <stan/math/prim/vectorize/apply_scalar_unary.hpp>

namespace stan {
namespace math {
Expand Down
1 change: 0 additions & 1 deletion stan/math/prim/fun/lgamma.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
#include <limits>
#endif
#include <stan/math/prim/meta.hpp>
#include <stan/math/prim/vectorize/apply_scalar_unary.hpp>

namespace stan {
namespace math {
Expand Down
1 change: 0 additions & 1 deletion stan/math/prim/fun/log.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
#include <stan/math/prim/meta.hpp>
#include <stan/math/prim/fun/Eigen.hpp>
#include <stan/math/prim/fun/log.hpp>
#include <stan/math/prim/vectorize/apply_scalar_unary.hpp>
#include <cmath>

namespace stan {
Expand Down
1 change: 0 additions & 1 deletion stan/math/prim/fun/log10.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

#include <stan/math/prim/meta.hpp>
#include <stan/math/prim/fun/Eigen.hpp>
#include <stan/math/prim/vectorize/apply_scalar_unary.hpp>
#include <cmath>

namespace stan {
Expand Down
1 change: 0 additions & 1 deletion stan/math/prim/fun/log1m.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
#include <stan/math/prim/err.hpp>
#include <stan/math/prim/fun/is_nan.hpp>
#include <stan/math/prim/fun/log1p.hpp>
#include <stan/math/prim/vectorize/apply_scalar_unary.hpp>

namespace stan {
namespace math {
Expand Down
1 change: 0 additions & 1 deletion stan/math/prim/fun/log1m_exp.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
#include <stan/math/prim/fun/constants.hpp>
#include <stan/math/prim/fun/expm1.hpp>
#include <stan/math/prim/fun/log1m.hpp>
#include <stan/math/prim/vectorize/apply_scalar_unary.hpp>
#include <cmath>

namespace stan {
Expand Down
1 change: 0 additions & 1 deletion stan/math/prim/fun/log1m_inv_logit.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

#include <stan/math/prim/meta.hpp>
#include <stan/math/prim/fun/log1p.hpp>
#include <stan/math/prim/vectorize/apply_scalar_unary.hpp>
#include <cmath>

namespace stan {
Expand Down
1 change: 0 additions & 1 deletion stan/math/prim/fun/log1p.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
#include <stan/math/prim/fun/Eigen.hpp>
#include <stan/math/prim/fun/is_nan.hpp>
#include <stan/math/prim/fun/log1p.hpp>
#include <stan/math/prim/vectorize/apply_scalar_unary.hpp>
#include <cmath>

namespace stan {
Expand Down
1 change: 0 additions & 1 deletion stan/math/prim/fun/log1p_exp.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

#include <stan/math/prim/meta.hpp>
#include <stan/math/prim/fun/log1p.hpp>
#include <stan/math/prim/vectorize/apply_scalar_unary.hpp>
#include <cmath>

namespace stan {
Expand Down
1 change: 0 additions & 1 deletion stan/math/prim/fun/log2.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

#include <stan/math/prim/meta.hpp>
#include <stan/math/prim/fun/constants.hpp>
#include <stan/math/prim/vectorize/apply_scalar_unary.hpp>
#include <cmath>

namespace stan {
Expand Down
1 change: 0 additions & 1 deletion stan/math/prim/fun/log_inv_logit.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

#include <stan/math/prim/meta.hpp>
#include <stan/math/prim/fun/log1p.hpp>
#include <stan/math/prim/vectorize/apply_scalar_unary.hpp>
#include <cmath>

namespace stan {
Expand Down
2 changes: 1 addition & 1 deletion stan/math/prim/fun/log_softmax.hpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#ifndef STAN_MATH_PRIM_FUN_LOG_SOFTMAX_HPP
#define STAN_MATH_PRIM_FUN_LOG_SOFTMAX_HPP

#include <stan/math/prim/meta.hpp>
#include <stan/math/prim/err.hpp>
#include <stan/math/prim/fun/Eigen.hpp>
#include <stan/math/prim/fun/log_sum_exp.hpp>
#include <stan/math/prim/vectorize/apply_vector_unary.hpp>

namespace stan {
namespace math {
Expand Down
1 change: 0 additions & 1 deletion stan/math/prim/fun/log_sum_exp.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
#include <stan/math/prim/fun/constants.hpp>
#include <stan/math/prim/fun/Eigen.hpp>
#include <stan/math/prim/fun/log1p_exp.hpp>
#include <stan/math/prim/vectorize/apply_vector_unary.hpp>
#include <cmath>
#include <vector>

Expand Down
1 change: 0 additions & 1 deletion stan/math/prim/fun/logit.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#define STAN_MATH_PRIM_FUN_LOGIT_HPP

#include <stan/math/prim/meta.hpp>
#include <stan/math/prim/vectorize/apply_scalar_unary.hpp>
#include <cmath>

namespace stan {
Expand Down
Loading