Skip to content

Commit 1fce5ac

Browse files
author
Andrew Johnson
committed
Merge branch 'develop' into feature/vec_gen_design
2 parents 8d8539a + 47b0595 commit 1fce5ac

File tree

943 files changed

+5247
-6195
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

943 files changed

+5247
-6195
lines changed

doxygen/contributor_help_pages/distribution_tests.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ Details:
140140
The types of arguments that are valid are: `Int`, `Double`, `Ints`, and `Doubles`. The first two indicate that the argument is not vectorized and only takes single, scalar values. The last two plural versions indicate that the argument types are vectorized.
141141
3. The next lines are includes. Most of the files will have:
142142
```
143-
\#include <stan/math/prim/scal.hpp>
143+
\#include <stan/math/prim.hpp>
144144
\#include <stdexcept>
145145
146146
```

runChecks.py

Lines changed: 1 addition & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -175,35 +175,7 @@ def main():
175175
},
176176
]
177177
errors.extend(grep_patterns("rev", "stan/math/rev", rev_checks))
178-
179-
# Check for files inside stan/math/*/scal that contain stan/math/*/arr or stan/math/*/mat
180-
scal_checks = [
181-
{
182-
"pattern": "<stan/math/.*/arr/",
183-
"message": "File includes an array header file.",
184-
},
185-
{"pattern": "<vector>", "message": "File includes an std::vector header."},
186-
{"pattern": "std::vector", "message": "File uses std::vector."},
187-
{
188-
"pattern": "<stan/math/.*/mat/",
189-
"message": "File includes a matrix header file.",
190-
},
191-
{"pattern": "<Eigen", "message": "File includes an Eigen header."},
192-
{"pattern": "Eigen::", "message": "File uses Eigen."},
193-
]
194-
errors.extend(grep_patterns("scal", "stan/math/*/scal", scal_checks))
195-
196-
# Check for files inside stan/math/*/arr that contain stan/math/*/mat or Eigen
197-
arr_checks = [
198-
{
199-
"pattern": "<stan/math/.*/mat/",
200-
"message": "File includes an matrix header file.",
201-
},
202-
{"pattern": "<Eigen", "message": "File includes an Eigen header."},
203-
{"pattern": "Eigen::", "message": "File uses Eigen."},
204-
]
205-
errors.extend(grep_patterns("arr", "stan/math/*/arr", arr_checks))
206-
178+
207179
# Check to make sure we use C++14 constructs in stan/math
208180
cpp14_checks = [
209181
{
@@ -257,16 +229,6 @@ def main():
257229
]
258230
errors.extend(grep_patterns("C++14", "stan/math", cpp14_checks))
259231

260-
# Check for includes of stan/math/*/meta/*.hpp inside stan/math, excluding meta.hpp files and the /meta subfolder
261-
meta_checks = [
262-
{
263-
"pattern": "<stan/math/.*/meta/.*hpp",
264-
"message": "File includes */meta/*.hpp header file. Should include meta.hpp",
265-
}
266-
]
267-
meta_exclude = ["stan/math/*/meta", "stan/math/*/meta.hpp"]
268-
errors.extend(grep_patterns("meta", "stan/math", meta_checks, meta_exclude))
269-
270232
# Check that we do not use non-reentrant safe functions from std
271233
thread_safe_checks = [
272234
{

runTests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def processCLIArgs():
3636

3737
tests_help_msg = "The path(s) to the test case(s) to run.\n"
3838
tests_help_msg += "Example: 'test/unit', 'test/prob', and/or\n"
39-
tests_help_msg += " 'test/unit/math/prim/scal/fun/abs_test.cpp'"
39+
tests_help_msg += " 'test/unit/math/prim/fun/abs_test.cpp'"
4040
parser.add_argument("tests", nargs="+", type=str,
4141
help=tests_help_msg)
4242
f_help_msg = "Only tests with file names matching these will be executed.\n"

stan/math/fwd.hpp

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

4-
#include <stan/math/prim/mat/fun/Eigen.hpp>
4+
#include <stan/math/prim/fun/Eigen.hpp>
55

66
#include <stan/math/fwd/core.hpp>
77
#include <stan/math/fwd/meta.hpp>
88
#include <stan/math/fwd/vectorize.hpp>
9-
#include <stan/math/prim/arr.hpp>
10-
#include <stan/math/prim/mat.hpp>
11-
#include <stan/math/prim/scal.hpp>
9+
#include <stan/math/prim.hpp>
1210

1311
#include <stan/math/fwd/fun.hpp>
1412
#include <stan/math/fwd/functor.hpp>

stan/math/fwd/core/fvar.hpp

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

44
#include <stan/math/prim/meta.hpp>
5-
#include <stan/math/prim/scal/fun/is_nan.hpp>
5+
#include <stan/math/prim/fun/is_nan.hpp>
66
#include <ostream>
77
#include <type_traits>
88

stan/math/fwd/fun/Eigen_NumTraits.hpp

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

44
#include <stan/math/fwd/core.hpp>
55
#include <stan/math/fwd/core/std_numeric_limits.hpp>
6-
#include <stan/math/prim/mat/fun/Eigen.hpp>
6+
#include <stan/math/prim/fun/Eigen.hpp>
77
#include <limits>
88

99
namespace Eigen {

stan/math/fwd/fun/Phi.hpp

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

44
#include <stan/math/fwd/meta.hpp>
55
#include <stan/math/fwd/core.hpp>
6-
#include <stan/math/prim/scal/fun/constants.hpp>
7-
#include <stan/math/prim/scal/fun/Phi.hpp>
6+
#include <stan/math/prim/fun/constants.hpp>
7+
#include <stan/math/prim/fun/Phi.hpp>
88
#include <cmath>
99

1010
namespace stan {

stan/math/fwd/fun/Phi_approx.hpp

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

44
#include <stan/math/fwd/meta.hpp>
55
#include <stan/math/fwd/core.hpp>
6-
#include <stan/math/prim/scal/fun/inv_logit.hpp>
6+
#include <stan/math/prim/fun/inv_logit.hpp>
77
#include <cmath>
88

99
namespace stan {

stan/math/fwd/fun/abs.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33

44
#include <stan/math/fwd/meta.hpp>
55
#include <stan/math/fwd/core.hpp>
6-
#include <stan/math/prim/scal/fun/constants.hpp>
7-
#include <stan/math/prim/scal/fun/abs.hpp>
8-
#include <stan/math/prim/scal/fun/value_of.hpp>
6+
#include <stan/math/prim/fun/constants.hpp>
7+
#include <stan/math/prim/fun/abs.hpp>
8+
#include <stan/math/prim/fun/value_of.hpp>
99

1010
namespace stan {
1111
namespace math {

stan/math/fwd/fun/acos.hpp

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

44
#include <stan/math/fwd/meta.hpp>
55
#include <stan/math/fwd/core.hpp>
6-
#include <stan/math/prim/scal/fun/square.hpp>
6+
#include <stan/math/prim/fun/square.hpp>
77
#include <cmath>
88

99
namespace stan {

stan/math/fwd/fun/acosh.hpp

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

44
#include <stan/math/fwd/meta.hpp>
55
#include <stan/math/fwd/core.hpp>
6-
#include <stan/math/prim/scal/fun/acosh.hpp>
7-
#include <stan/math/prim/scal/fun/square.hpp>
6+
#include <stan/math/prim/fun/acosh.hpp>
7+
#include <stan/math/prim/fun/square.hpp>
88
#include <cmath>
99

1010
namespace stan {

stan/math/fwd/fun/asin.hpp

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

44
#include <stan/math/fwd/meta.hpp>
55
#include <stan/math/fwd/core.hpp>
6-
#include <stan/math/prim/scal/fun/square.hpp>
6+
#include <stan/math/prim/fun/square.hpp>
77
#include <cmath>
88

99
namespace stan {

stan/math/fwd/fun/asinh.hpp

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

44
#include <stan/math/fwd/meta.hpp>
55
#include <stan/math/fwd/core.hpp>
6-
#include <stan/math/prim/scal/fun/asinh.hpp>
7-
#include <stan/math/prim/scal/fun/square.hpp>
6+
#include <stan/math/prim/fun/asinh.hpp>
7+
#include <stan/math/prim/fun/square.hpp>
88
#include <cmath>
99

1010
namespace stan {

stan/math/fwd/fun/atan.hpp

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

44
#include <stan/math/fwd/meta.hpp>
55
#include <stan/math/fwd/core.hpp>
6-
#include <stan/math/prim/scal/fun/square.hpp>
6+
#include <stan/math/prim/fun/square.hpp>
77
#include <cmath>
88

99
namespace stan {

stan/math/fwd/fun/atan2.hpp

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

44
#include <stan/math/fwd/meta.hpp>
55
#include <stan/math/fwd/core.hpp>
6-
#include <stan/math/prim/scal/fun/square.hpp>
6+
#include <stan/math/prim/fun/square.hpp>
77
#include <cmath>
88

99
namespace stan {

stan/math/fwd/fun/atanh.hpp

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

44
#include <stan/math/fwd/meta.hpp>
55
#include <stan/math/fwd/core.hpp>
6-
#include <stan/math/prim/scal/fun/atanh.hpp>
7-
#include <stan/math/prim/scal/fun/square.hpp>
6+
#include <stan/math/prim/fun/atanh.hpp>
7+
#include <stan/math/prim/fun/square.hpp>
88

99
namespace stan {
1010
namespace math {

stan/math/fwd/fun/bessel_first_kind.hpp

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

44
#include <stan/math/fwd/meta.hpp>
55
#include <stan/math/fwd/core.hpp>
6-
#include <stan/math/prim/scal/fun/bessel_first_kind.hpp>
6+
#include <stan/math/prim/fun/bessel_first_kind.hpp>
77

88
namespace stan {
99
namespace math {

stan/math/fwd/fun/bessel_second_kind.hpp

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

44
#include <stan/math/fwd/meta.hpp>
55
#include <stan/math/fwd/core.hpp>
6-
#include <stan/math/prim/scal/fun/bessel_second_kind.hpp>
6+
#include <stan/math/prim/fun/bessel_second_kind.hpp>
77

88
namespace stan {
99
namespace math {

stan/math/fwd/fun/beta.hpp

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

44
#include <stan/math/fwd/meta.hpp>
55
#include <stan/math/fwd/core.hpp>
6-
#include <stan/math/prim/scal/fun/beta.hpp>
7-
#include <stan/math/prim/scal/fun/digamma.hpp>
6+
#include <stan/math/prim/fun/beta.hpp>
7+
#include <stan/math/prim/fun/digamma.hpp>
88

99
namespace stan {
1010
namespace math {

stan/math/fwd/fun/binary_log_loss.hpp

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

44
#include <stan/math/fwd/meta.hpp>
55
#include <stan/math/fwd/core.hpp>
6-
#include <stan/math/prim/scal/fun/binary_log_loss.hpp>
6+
#include <stan/math/prim/fun/binary_log_loss.hpp>
77

88
namespace stan {
99
namespace math {

stan/math/fwd/fun/cbrt.hpp

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

44
#include <stan/math/fwd/meta.hpp>
55
#include <stan/math/fwd/core.hpp>
6-
#include <stan/math/prim/scal/fun/cbrt.hpp>
7-
#include <stan/math/prim/scal/fun/square.hpp>
6+
#include <stan/math/prim/fun/cbrt.hpp>
7+
#include <stan/math/prim/fun/square.hpp>
88

99
namespace stan {
1010
namespace math {

stan/math/fwd/fun/columns_dot_product.hpp

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

44
#include <stan/math/prim/err.hpp>
5-
#include <stan/math/prim/mat/fun/Eigen.hpp>
5+
#include <stan/math/prim/fun/Eigen.hpp>
66
#include <stan/math/fwd/fun/typedefs.hpp>
77
#include <stan/math/fwd/core.hpp>
88

stan/math/fwd/fun/columns_dot_self.hpp

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

4-
#include <stan/math/prim/mat/fun/Eigen.hpp>
4+
#include <stan/math/prim/fun/Eigen.hpp>
55
#include <stan/math/fwd/core.hpp>
66
#include <stan/math/fwd/fun/dot_self.hpp>
77

stan/math/fwd/fun/crossprod.hpp

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

4-
#include <stan/math/prim/mat/fun/Eigen.hpp>
4+
#include <stan/math/prim/fun/Eigen.hpp>
5+
#include <stan/math/prim/fun/transpose.hpp>
56
#include <stan/math/fwd/fun/multiply.hpp>
6-
#include <stan/math/prim/mat/fun/transpose.hpp>
77

88
namespace stan {
99
namespace math {

stan/math/fwd/fun/determinant.hpp

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

44
#include <stan/math/prim/err.hpp>
5-
#include <stan/math/prim/mat/fun/Eigen.hpp>
5+
#include <stan/math/prim/fun/Eigen.hpp>
66
#include <stan/math/fwd/core.hpp>
77

88
namespace stan {

stan/math/fwd/fun/digamma.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
#include <stan/math/fwd/meta.hpp>
55
#include <stan/math/fwd/core.hpp>
66

7-
#include <stan/math/prim/scal/fun/digamma.hpp>
8-
#include <stan/math/prim/scal/fun/trigamma.hpp>
7+
#include <stan/math/prim/fun/digamma.hpp>
8+
#include <stan/math/prim/fun/trigamma.hpp>
99

1010
namespace stan {
1111
namespace math {

stan/math/fwd/fun/divide.hpp

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

4-
#include <stan/math/prim/mat/fun/Eigen.hpp>
4+
#include <stan/math/prim/fun/Eigen.hpp>
55
#include <stan/math/fwd/core.hpp>
66

77
namespace stan {

stan/math/fwd/fun/dot_product.hpp

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

44
#include <stan/math/prim/err.hpp>
5-
#include <stan/math/prim/mat/fun/Eigen.hpp>
5+
#include <stan/math/prim/fun/Eigen.hpp>
66
#include <stan/math/fwd/fun/typedefs.hpp>
77
#include <vector>
88

stan/math/fwd/fun/dot_self.hpp

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

44
#include <stan/math/prim/err.hpp>
5-
#include <stan/math/prim/mat/fun/Eigen.hpp>
5+
#include <stan/math/prim/fun/Eigen.hpp>
66
#include <stan/math/fwd/core.hpp>
77
#include <stan/math/fwd/fun/dot_product.hpp>
88

stan/math/fwd/fun/erf.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33

44
#include <stan/math/fwd/meta.hpp>
55
#include <stan/math/fwd/core.hpp>
6-
#include <stan/math/prim/scal/fun/constants.hpp>
7-
#include <stan/math/prim/scal/fun/erf.hpp>
8-
#include <stan/math/prim/scal/fun/square.hpp>
6+
#include <stan/math/prim/fun/constants.hpp>
7+
#include <stan/math/prim/fun/erf.hpp>
8+
#include <stan/math/prim/fun/square.hpp>
99
#include <cmath>
1010

1111
namespace stan {

stan/math/fwd/fun/erfc.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33

44
#include <stan/math/fwd/meta.hpp>
55
#include <stan/math/fwd/core.hpp>
6-
#include <stan/math/prim/scal/fun/constants.hpp>
7-
#include <stan/math/prim/scal/fun/erfc.hpp>
8-
#include <stan/math/prim/scal/fun/square.hpp>
6+
#include <stan/math/prim/fun/constants.hpp>
7+
#include <stan/math/prim/fun/erfc.hpp>
8+
#include <stan/math/prim/fun/square.hpp>
99
#include <cmath>
1010

1111
namespace stan {

stan/math/fwd/fun/exp2.hpp

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

44
#include <stan/math/fwd/meta.hpp>
55
#include <stan/math/fwd/core.hpp>
6-
#include <stan/math/prim/scal/fun/exp2.hpp>
7-
#include <stan/math/prim/scal/fun/constants.hpp>
6+
#include <stan/math/prim/fun/exp2.hpp>
7+
#include <stan/math/prim/fun/constants.hpp>
88
#include <cmath>
99

1010
namespace stan {

stan/math/fwd/fun/expm1.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#ifndef STAN_MATH_FWD_FUN_EXPM1_HPP
22
#define STAN_MATH_FWD_FUN_EXPM1_HPP
33

4+
#include <stan/math/prim/fun/expm1.hpp>
45
#include <stan/math/fwd/meta.hpp>
5-
#include <stan/math/prim/scal/fun/expm1.hpp>
66
#include <stan/math/fwd/core.hpp>
77
#include <cmath>
88

stan/math/fwd/fun/fabs.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33

44
#include <stan/math/fwd/meta.hpp>
55
#include <stan/math/fwd/core.hpp>
6-
#include <stan/math/prim/scal/fun/constants.hpp>
7-
#include <stan/math/prim/scal/fun/is_nan.hpp>
8-
#include <stan/math/prim/scal/fun/value_of.hpp>
6+
#include <stan/math/prim/fun/constants.hpp>
7+
#include <stan/math/prim/fun/is_nan.hpp>
8+
#include <stan/math/prim/fun/value_of.hpp>
99
#include <cmath>
1010

1111
namespace stan {

0 commit comments

Comments
 (0)