Skip to content

Commit 37df357

Browse files
author
Nicusor Serban
committed
Merge branch 'develop' into release/v4.7.0
2 parents adbf09b + bdf281f commit 37df357

File tree

104 files changed

+165
-300
lines changed

Some content is hidden

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

104 files changed

+165
-300
lines changed

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,

stan/math/opencl/mrrr.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,6 @@ inline void mrrr_cl(const Eigen::Ref<const Eigen::VectorXd> diagonal,
373373
cluster_end--; // now this is the index of the last element of the
374374
// cluster
375375
if (cluster_end > i) { // cluster
376-
double_d a = high[cluster_end - 1], b = low[cluster_end];
377376
double_d max_shift
378377
= (high[cluster_end - 1] - low[cluster_end]) / min_rel_sep;
379378
double_d next_shift;
@@ -396,7 +395,6 @@ inline void mrrr_cl(const Eigen::Ref<const Eigen::VectorXd> diagonal,
396395

397396
i = cluster_end;
398397
} else { // isolated eigenvalue
399-
int twist_idx;
400398
const double_d low_gap
401399
= i == block.start
402400
? double_d(std::numeric_limits<double>::infinity())

stan/math/opencl/prim/bernoulli_cdf.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ return_type_t<T_prob_cl> bernoulli_cdf(const T_n_cl& n,
3333
using T_partials_return = partials_return_t<T_prob_cl>;
3434
using std::isnan;
3535
constexpr bool is_n_vector = !is_stan_scalar<T_n_cl>::value;
36-
constexpr bool is_theta_vector = !is_stan_scalar<T_prob_cl>::value;
3736

3837
check_consistent_sizes(function, "Random variable", n,
3938
"Probability parameter", theta);

stan/math/opencl/prim/bernoulli_lccdf.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ return_type_t<T_prob_cl> bernoulli_lccdf(const T_n_cl& n,
3434
using T_partials_return = partials_return_t<T_prob_cl>;
3535
using std::isnan;
3636
constexpr bool is_n_vector = !is_stan_scalar<T_n_cl>::value;
37-
constexpr bool is_theta_vector = !is_stan_scalar<T_prob_cl>::value;
3837

3938
check_consistent_sizes(function, "Random variable", n,
4039
"Probability parameter", theta);

stan/math/opencl/prim/bernoulli_lcdf.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ return_type_t<T_prob_cl> bernoulli_lcdf(const T_n_cl& n,
3434
using T_partials_return = partials_return_t<T_prob_cl>;
3535
using std::isnan;
3636
constexpr bool is_n_vector = !is_stan_scalar<T_n_cl>::value;
37-
constexpr bool is_theta_vector = !is_stan_scalar<T_prob_cl>::value;
3837

3938
check_consistent_sizes(function, "Random variable", n,
4039
"Probability parameter", theta);

stan/math/opencl/prim/bernoulli_logit_lpmf.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ return_type_t<T_prob_cl> bernoulli_logit_lpmf(const T_n_cl& n,
3232
using T_partials_return = partials_return_t<T_prob_cl>;
3333
using std::isnan;
3434
constexpr bool is_n_vector = !is_stan_scalar<T_n_cl>::value;
35-
constexpr bool is_theta_vector = !is_stan_scalar<T_prob_cl>::value;
3635

3736
check_consistent_sizes(function, "Random variable", n,
3837
"Probability parameter", theta);

0 commit comments

Comments
 (0)