Skip to content

Commit 526a078

Browse files
Merge branch 'master' into develop
2 parents 40a3fc1 + de404cc commit 526a078

File tree

23,445 files changed

+995685
-763696
lines changed

Some content is hidden

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

23,445 files changed

+995685
-763696
lines changed

.github/ISSUE_TEMPLATE.md

Lines changed: 1 addition & 1 deletion

Jenkinsfile

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def runTests(String testPath, boolean jumbo = false) {
1010
sh "./runTests.py -j${env.PARALLEL} ${testPath}"
1111
}
1212
}
13-
finally { junit 'test/**/*.xml' }
13+
finally { junit 'test/**/*.xml' }
1414
}
1515

1616
def runTestsWin(String testPath, boolean buildLibs = true, boolean jumbo = false) {
@@ -19,11 +19,11 @@ def runTestsWin(String testPath, boolean buildLibs = true, boolean jumbo = false
1919
if (buildLibs){
2020
bat "mingw32-make.exe -f make/standalone math-libs"
2121
}
22-
try {
22+
try {
2323
if (jumbo) {
24-
bat "runTests.py -j${env.PARALLEL} ${testPath} --jumbo"
24+
bat "runTests.py -j${env.PARALLEL} ${testPath} --jumbo"
2525
} else {
26-
bat "runTests.py -j${env.PARALLEL} ${testPath}"
26+
bat "runTests.py -j${env.PARALLEL} ${testPath}"
2727
}
2828
}
2929
finally { junit 'test/**/*.xml' }
@@ -252,7 +252,7 @@ pipeline {
252252
runTestsWin("test/unit/math/opencl", false, false)
253253
runTestsWin("test/unit/multiple_translation_units_test.cpp", false, false)
254254
runTestsWin("test/unit/math/prim/fun/gp_exp_quad_cov_test.cpp", false, false)
255-
runTestsWin("test/unit/math/prim/fun/multiply_test.cpp", false, false)
255+
runTestsWin("test/unit/math/prim/fun/multiply_test.cpp", false, false)
256256
runTestsWin("test/unit/math/rev/fun/multiply_test.cpp", false, false)
257257
}
258258
}
@@ -286,10 +286,10 @@ pipeline {
286286
runTestsWin("test/unit/math/opencl", false, false)
287287
runTestsWin("test/unit/multiple_translation_units_test.cpp", false, false)
288288
runTestsWin("test/unit/math/prim/fun/gp_exp_quad_cov_test.cpp", false, false)
289-
runTestsWin("test/unit/math/prim/fun/multiply_test.cpp", false, false)
289+
runTestsWin("test/unit/math/prim/fun/multiply_test.cpp", false, false)
290290
runTestsWin("test/unit/math/rev/fun/multiply_test.cpp", false, false)
291291
}
292-
292+
293293
}
294294
}
295295
}
@@ -339,7 +339,7 @@ pipeline {
339339
sh "find . -name *_test.xml | xargs rm"
340340
runTests("test/unit -f reduce_sum")
341341
}
342-
}
342+
}
343343
}
344344
post { always { retry(3) { deleteDir() } } }
345345
}

README.md

Lines changed: 2 additions & 37 deletions

RELEASE-NOTES.txt

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
11
Stan Math Library Release Notes
22

33
======================================================================
4-
v4.0.0 (26 January 2020)
4+
v4.0.1 (17 February 2021)
5+
======================================================================
6+
7+
- Fixed issue with `cholesky_decompose` not propagating derivatives correctly .
8+
- Fixed OpenCL implementations of distributions mostly not working with row vectors.
9+
- Fixed handling of input expressions with reduce_sum.
10+
11+
======================================================================
12+
v4.0.0 (26 January 2021)
513
======================================================================
614

715
New functions:
@@ -124,7 +132,6 @@ OpenCL backend:
124132
- Added OpenCL reverse mode implementations of matrix multiply and sum.(#2099)
125133
- vari_base can now be constructed with matrix_cl value and adjoint. Copying between host and device is possible for vars containing Eigen::Matrix/matrix_cl. Adjoints are propagated over these copies.(#1967)
126134

127-
128135
======================================================================
129136
v3.3.0 (28 July 2020)
130137
======================================================================

benchmarks/benchmark.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -403,10 +403,10 @@ def benchmark(
403403
n,
404404
(arg_overload, cpp_arg_template, stan_arg),
405405
) in enumerate(zip(arg_overloads, cpp_arg_templates, stan_args)):
406-
n_vec, inner_type = parse_array(stan_arg)
407-
if n_vec:
406+
if stan_arg.endswith("]"):
407+
stan_arg2, vec = stan_arg.split("[")
408408
benchmark_name += (
409-
"_" + arg_overload + "_" + inner_type + str(n_vec)
409+
"_" + arg_overload + "_" + stan_arg2 + str(len(vec))
410410
)
411411
else:
412412
benchmark_name += "_" + arg_overload + "_" + stan_arg

doxygen/doxygen.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ PROJECT_NAME = "Stan Math Library"
3838
# could be handy for archiving the generated documentation or if some version
3939
# control system is used.
4040

41-
PROJECT_NUMBER = 4.0.0
41+
PROJECT_NUMBER = 4.0.1
4242

4343
# Using the PROJECT_BRIEF tag one can provide an optional one line description
4444
# for a project that appears at the top of each page and should give viewer a

lib/boost_1.75.0/Jamroot renamed to lib/boost_1.72.0/Jamroot

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -144,12 +144,9 @@ import option ;
144144
import tools/boost\_install/boost-install ;
145145

146146
path-constant BOOST_ROOT : . ;
147-
constant BOOST_VERSION : 1.75.0 ;
147+
constant BOOST_VERSION : 1.72.0 ;
148148
constant BOOST_JAMROOT_MODULE : $(__name__) ;
149149

150-
# Allow subprojects to simply `import config : requires ;` to get access to the requires rule
151-
modules.poke : BOOST_BUILD_PATH : $(BOOST_ROOT)/libs/config/checks [ modules.peek : BOOST_BUILD_PATH ] ;
152-
153150
boostcpp.set-version $(BOOST_VERSION) ;
154151

155152
use-project /boost/architecture : libs/config/checks/architecture ;
File renamed without changes.
File renamed without changes.

lib/boost_1.75.0/boost/algorithm/cxx17/inclusive_scan.hpp renamed to lib/boost_1.72.0/boost/algorithm/cxx17/inclusive_scan.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
/// \brief Combine the (transformed) elements of a sequence (or two) into a single value.
1010
/// \author Marshall Clow
1111

12-
#ifndef BOOST_ALGORITHM_INCLUSIVE_SCAN_HPP
13-
#define BOOST_ALGORITHM_INCLUSIVE_SCAN_HPP
12+
#ifndef BOOST_ALGORITHM_TRANSFORM_REDUCE_HPP
13+
#define BOOST_ALGORITHM_TRANSFORM_REDUCE_HPP
1414

1515
#include <functional> // for std::plus
1616
#include <iterator> // for std::iterator_traits
@@ -58,4 +58,4 @@ OutputIterator inclusive_scan(InputIterator first, InputIterator last,
5858

5959
}} // namespace boost and algorithm
6060

61-
#endif // BOOST_ALGORITHM_INCLUSIVE_SCAN_HPP
61+
#endif // BOOST_ALGORITHM_TRANSFORM_REDUCE_HPP

lib/boost_1.75.0/boost/algorithm/gather.hpp renamed to lib/boost_1.72.0/boost/algorithm/gather.hpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,9 @@
2222

2323
#include <algorithm> // for std::stable_partition
2424
#include <functional>
25-
#include <utility> // for std::make_pair
2625

2726
#include <boost/config.hpp>
28-
#include <boost/bind/bind.hpp> // for boost::bind
27+
#include <boost/bind.hpp> // for boost::bind
2928
#include <boost/range/begin.hpp> // for boost::begin(range)
3029
#include <boost/range/end.hpp> // for boost::end(range)
3130

@@ -82,14 +81,13 @@ namespace boost { namespace algorithm {
8281
*/
8382

8483
template <
85-
typename BidirectionalIterator, // models BidirectionalIterator
86-
typename Pred> // models UnaryPredicate
84+
typename BidirectionalIterator, // Iter models BidirectionalIterator
85+
typename Pred> // Pred models UnaryPredicate
8786
std::pair<BidirectionalIterator, BidirectionalIterator> gather
8887
( BidirectionalIterator first, BidirectionalIterator last, BidirectionalIterator pivot, Pred pred )
8988
{
9089
// The first call partitions everything up to (but not including) the pivot element,
9190
// while the second call partitions the rest of the sequence.
92-
using namespace boost::placeholders;
9391
return std::make_pair (
9492
std::stable_partition ( first, pivot, !boost::bind<bool> ( pred, _1 )),
9593
std::stable_partition ( pivot, last, boost::bind<bool> ( pred, _1 )));

0 commit comments

Comments
 (0)