Skip to content

Commit 5df6fc5

Browse files
authored
Merge pull request #3265 from stan-dev/fix-grad_reg_lower_inc_gamma
fix incorrect order of inputs within `grad_reg_lower_inc_gamma`
2 parents d1c0075 + 79e7dd4 commit 5df6fc5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stan/math/prim/fun/grad_reg_lower_inc_gamma.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ inline return_type_t<T1, T2> grad_reg_lower_inc_gamma(const T1& a, const T2& z,
133133
+ 60 * value_of_rec(z))) {
134134
T1 tg = tgamma(a);
135135
T1 dig = digamma(a);
136-
return -grad_reg_inc_gamma(a, z, tg, dig, max_steps, precision);
136+
return -grad_reg_inc_gamma(a, z, tg, dig, precision, max_steps);
137137
}
138138

139139
T2 log_z = log(z);

0 commit comments

Comments
 (0)