Skip to content

Commit 6f7ad60

Browse files
committed
remove unused variables in compute_s2
1 parent 4bee386 commit 6f7ad60

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

stan/math/mix/functor/laplace_likelihood.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,8 +226,6 @@ inline auto compute_s2(F&& f, Theta&& theta, AMat&& A,
226226
Matrix<fvar<fvar<var>>, Dynamic, 1> theta_ffvar(theta_size);
227227
auto shallow_copy_args
228228
= shallow_copy_vargs<fvar<fvar<var>>>(std::forward_as_tuple(args...));
229-
// build a “row” index 0,1,2,…,total-1
230-
Eigen::Index total = n_blocks * hessian_block_size;
231229
for (Eigen::Index i = 0; i < hessian_block_size; ++i) {
232230
nested_rev_autodiff nested;
233231
v.setZero();

0 commit comments

Comments
 (0)