Skip to content

Commit e09096b

Browse files
committed
Merge commit '4cf25de56d29ef39c93eb2595d13dcfd65f97818' into HEAD
2 parents 1536d12 + 4cf25de commit e09096b

112 files changed

Lines changed: 207 additions & 323 deletions

File tree

Some content is hidden

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

.github/ISSUE_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ If this is a **feature request**, show what you expect to happen if the feature
2525

2626

2727
#### Current Version:
28-
v4.6.2
28+
v4.7.0

.github/workflows/header_checks.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
runs-on: windows-latest
2727

2828
steps:
29-
- uses: actions/checkout@v3
29+
- uses: actions/checkout@v4
3030
- uses: actions/setup-python@v4
3131
with:
3232
python-version: '3.x'
@@ -52,7 +52,7 @@ jobs:
5252
runs-on: ubuntu-latest
5353

5454
steps:
55-
- uses: actions/checkout@v3
55+
- uses: actions/checkout@v4
5656

5757
- name: Run header tests
5858
run: |
@@ -63,7 +63,7 @@ jobs:
6363
runs-on: ubuntu-latest
6464

6565
steps:
66-
- uses: actions/checkout@v3
66+
- uses: actions/checkout@v4
6767

6868
- name: Run header tests
6969
run: |

.github/workflows/main.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
runs-on: windows-latest
2525

2626
steps:
27-
- uses: actions/checkout@v3
27+
- uses: actions/checkout@v4
2828
- uses: actions/setup-python@v4
2929
with:
3030
python-version: '3.x'
@@ -74,7 +74,7 @@ jobs:
7474
runs-on: windows-latest
7575

7676
steps:
77-
- uses: actions/checkout@v3
77+
- uses: actions/checkout@v4
7878
- uses: actions/setup-python@v4
7979
with:
8080
python-version: '3.x'
@@ -128,7 +128,7 @@ jobs:
128128
runs-on: windows-latest
129129

130130
steps:
131-
- uses: actions/checkout@v3
131+
- uses: actions/checkout@v4
132132
- uses: actions/setup-python@v4
133133
with:
134134
python-version: '3.x'
@@ -177,7 +177,7 @@ jobs:
177177
runs-on: windows-latest
178178

179179
steps:
180-
- uses: actions/checkout@v3
180+
- uses: actions/checkout@v4
181181
- uses: actions/setup-python@v4
182182
with:
183183
python-version: '3.x'

RELEASE-NOTES.txt

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,24 @@
11
Stan Math Library Release Notes
22

3+
======================================================================
4+
v4.7.0 (5 September 2023)
5+
======================================================================
6+
7+
- Improved accuracy of `matrix_exp_multiply`. (#2619)
8+
- Added framework for vectorising ternary functions (#2642)
9+
- Added `select()` function for vectorised ternary operations, as well as the `any()` and `all()` boolean reduction functions (#2853)
10+
- Added a minimum number of iterations (5) to the `grad_2f1` function to avoid early convergence (#2858)
11+
- Fixed some spelling errors in documentation (#2908)
12+
- Added new function in `stan::math::internal`, `finite_diff_hessian_vector_product_auto` (#2914)
13+
- Fixed an issue with the return type of `eigenvalues` being incorrect (#2915)
14+
- Delete jquery files from vendored Boost documentation (#2916)
15+
- Fixed fvar/higher-order autodiff compatibility with GLM distributions (#2917)
16+
- Fixed a type issue in the tests for inv_wishart_cholesky. (#2920)
17+
- The constraint tolerance can now be adjusted by defining the `STAN_MATH_CONSTRAINT_TOLERANCE` macro before including Stan headers. The default value remains `1E-8`. (#2921)
18+
- Use -dumpfullversion if available in makefiles (#2922)
19+
- Vectorised binary signature for `log_sum_exp` (#2930)
20+
- Added new functions `qr_thin`, `eigendecompose_sym`, `eigendecompose`, `complex_schur_decompose`, `svd`, and `csr_extract`. Each of these is equivalent to calling several existing functions, but should be more efficient due to sharing work. For example, `svd(m)` is equivalent to `(svd_U(m), singular_values(m), svd_V(m))`. (#2931)
21+
322
======================================================================
423
v4.6.2 (15 May 2023)
524
======================================================================

doxygen/doxygen.cfg

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

51-
PROJECT_NUMBER = 4.6.2
51+
PROJECT_NUMBER = 4.7.0
5252

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

stan/math/fwd/fun/mdivide_left.hpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,6 @@ template <typename T1, typename T2,
6060
inline Eigen::Matrix<value_type_t<T2>, T1::RowsAtCompileTime,
6161
T2::ColsAtCompileTime>
6262
mdivide_left(const T1& A, const T2& b) {
63-
constexpr int S1 = T1::RowsAtCompileTime;
64-
constexpr int C2 = T2::ColsAtCompileTime;
65-
6663
check_square("mdivide_left", "A", A);
6764
check_multiplicable("mdivide_left", "A", A, "b", b);
6865
if (A.size() == 0) {

stan/math/fwd/fun/mdivide_left_tri_low.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ inline Eigen::Matrix<value_type_t<T2>, T1::RowsAtCompileTime,
5656
T2::ColsAtCompileTime>
5757
mdivide_left_tri_low(const T1& A, const T2& b) {
5858
constexpr int S1 = T1::RowsAtCompileTime;
59-
constexpr int C2 = T2::ColsAtCompileTime;
6059

6160
check_square("mdivide_left_tri_low", "A", A);
6261
check_multiplicable("mdivide_left_tri_low", "A", A, "b", b);

stan/math/fwd/fun/mdivide_right.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ inline Eigen::Matrix<value_type_t<EigMat2>, EigMat1::RowsAtCompileTime,
9797
mdivide_right(const EigMat1& A, const EigMat2& b) {
9898
using T = typename value_type_t<EigMat2>::Scalar;
9999
constexpr int R1 = EigMat1::RowsAtCompileTime;
100-
constexpr int C1 = EigMat1::ColsAtCompileTime;
101100
constexpr int R2 = EigMat2::RowsAtCompileTime;
102101
constexpr int C2 = EigMat2::ColsAtCompileTime;
103102

stan/math/fwd/fun/mdivide_right_tri_low.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ inline Eigen::Matrix<value_type_t<EigMat2>, EigMat1::RowsAtCompileTime,
9898
mdivide_right_tri_low(const EigMat1& A, const EigMat2& b) {
9999
using T = typename value_type_t<EigMat2>::Scalar;
100100
constexpr int R1 = EigMat1::RowsAtCompileTime;
101-
constexpr int C1 = EigMat1::ColsAtCompileTime;
102101
constexpr int R2 = EigMat2::RowsAtCompileTime;
103102
constexpr int C2 = EigMat2::ColsAtCompileTime;
104103
check_square("mdivide_right_tri_low", "b", b);

stan/math/opencl/kernel_generator/broadcast.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ class broadcast_
9898
* @return pair of indices - bottom and top diagonal
9999
*/
100100
inline std::pair<int, int> extreme_diagonals() const {
101-
int bottom, top;
102101
std::pair<int, int> arg_diags
103102
= this->template get_arg<0>().extreme_diagonals();
104103
return {Colwise ? std::numeric_limits<int>::min() : arg_diags.first,

0 commit comments

Comments
 (0)