Skip to content

Commit c00cd6e

Browse files
committed
Remove unused variables
1 parent ff5e277 commit c00cd6e

3 files changed

Lines changed: 0 additions & 5 deletions

File tree

stan/math/prim/constraint/sum_to_zero_constrain.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ template <typename Mat, require_eigen_matrix_dynamic_t<Mat>* = nullptr,
7575
inline plain_type_t<Mat> sum_to_zero_constrain(const Mat& x) {
7676
const auto N = x.rows();
7777
const auto M = x.cols();
78-
const auto s = std::max(N, M);
7978

8079
plain_type_t<Mat> Z = Eigen::MatrixXd::Zero(N + 1, M + 1);
8180
if (unlikely(N == 0 || M == 0)) {

stan/math/prim/constraint/sum_to_zero_free.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ inline plain_type_t<Mat> sum_to_zero_free(const Mat& z) {
7777

7878
const auto N = z_ref.rows() - 1;
7979
const auto M = z_ref.cols() - 1;
80-
const auto s = std::max(N, M);
8180

8281
plain_type_t<Mat> x = Eigen::MatrixXd::Zero(N, M);
8382
if (unlikely(N == 0 || M == 0)) {

stan/math/rev/constraint/sum_to_zero_constrain.hpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,6 @@ inline auto sum_to_zero_constrain(T&& x) {
9393
reverse_pass_callback([arena_x, arena_z]() mutable {
9494
const auto Nf = arena_x.val().rows();
9595
const auto Mf = arena_x.val().cols();
96-
const auto N = Nf + 1;
97-
const auto M = Mf + 1;
98-
const auto s = std::max(Nf, Mf);
9996

10097
Eigen::VectorXd d_beta = Eigen::VectorXd::Zero(Nf);
10198

0 commit comments

Comments
 (0)