Skip to content

Commit 55462da

Browse files
committed
bugfix
1 parent 089ee51 commit 55462da

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

stan/math/opencl/prim/frechet_lccdf.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ return_type_t<T_y_cl, T_shape_cl, T_scale_cl> frechet_lccdf(
6767
auto exp_n = exp(-pow_n);
6868
auto lccdf_expr = colwise_sum(log1m(exp_n));
6969

70-
auto rep_deriv = elt_divide(pow_n, elt_divide(1.0, exp_n - 1.0));
70+
auto rep_deriv = elt_divide(pow_n, elt_divide(1.0, exp_n) - 1.0);
7171
auto y_deriv = elt_multiply(elt_divide(-alpha_val, y_val), rep_deriv);
7272
auto alpha_deriv
7373
= elt_multiply(-log(elt_divide(y_val, sigma_val)), rep_deriv);

0 commit comments

Comments
 (0)