@@ -29,8 +29,8 @@ namespace math {
2929 * @tparam T_alpha type of the intercept vector
3030 * @tparam T_beta type of the matrix of weights
3131 * @param y a scalar or vector of classes. If it is a scalar it will be
32- * broadcast - used for all instances. Values should be between 1 and number of
33- * classes, including endpoints.
32+ * broadcast - used for all instances. Values should be between 1 and number
33+ * of classes, including endpoints.
3434 * @param x design matrix or row vector. If it is a row vector it will be
3535 * broadcast - used for all instances.
3636 * @param alpha intercept vector (in log odds)
@@ -148,8 +148,8 @@ return_type_t<T_x, T_alpha, T_beta> categorical_logit_glm_lpmf(
148148 = beta_y
149149 - (exp_lin.matrix () * beta_val.transpose ()).array ().colwise ()
150150 * inv_sum_exp_lin;
151- // TODO(Tadej) maybe we can replace previous block with the following line
152- // when we have newer Eigen partials<0>(ops_partials) = beta_val(y
151+ // TODO(Tadej) maybe we can replace previous block with the following
152+ // line when we have newer Eigen partials<0>(ops_partials) = beta_val(y
153153 // - 1, all) - (exp_lin.matrix() * beta.transpose()).colwise() *
154154 // inv_sum_exp_lin;
155155 }
@@ -183,8 +183,9 @@ return_type_t<T_x, T_alpha, T_beta> categorical_logit_glm_lpmf(
183183 beta_derivative.col (y_seq[i] - 1 ) += x_val.row (i);
184184 }
185185 }
186- // TODO(Tadej) maybe we can replace previous loop with the following line
187- // when we have newer Eigen partials<2>(ops_partials)(Eigen::all, y
186+ // TODO(Tadej) maybe we can replace previous loop with the following
187+ // line when we have newer Eigen partials<2>(ops_partials)(Eigen::all,
188+ // y
188189 // - 1) += x_val.colwise.sum().transpose();
189190
190191 partials<2 >(ops_partials) = std::move (beta_derivative);
0 commit comments