We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 089ee51 commit 55462daCopy full SHA for 55462da
1 file changed
stan/math/opencl/prim/frechet_lccdf.hpp
@@ -67,7 +67,7 @@ return_type_t<T_y_cl, T_shape_cl, T_scale_cl> frechet_lccdf(
67
auto exp_n = exp(-pow_n);
68
auto lccdf_expr = colwise_sum(log1m(exp_n));
69
70
- auto rep_deriv = elt_divide(pow_n, elt_divide(1.0, exp_n - 1.0));
+ auto rep_deriv = elt_divide(pow_n, elt_divide(1.0, exp_n) - 1.0);
71
auto y_deriv = elt_multiply(elt_divide(-alpha_val, y_val), rep_deriv);
72
auto alpha_deriv
73
= elt_multiply(-log(elt_divide(y_val, sigma_val)), rep_deriv);
0 commit comments