Skip to content

Commit 36337f6

Browse files
committed
[Jenkins] auto-formatting by clang-format version 10.0.0-4ubuntu1
1 parent 2c6ef87 commit 36337f6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

stan/math/prim/fun/log_gamma_q_dgamma.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ namespace internal {
4444
* @return log(Q(a,z)) with same type as T_a and T_z
4545
*/
4646
template <typename T_a, typename T_z>
47-
inline auto log_q_gamma_cf(const T_a& a, const T_z& z, double precision = 1e-16, int max_steps = 250) {
47+
inline auto log_q_gamma_cf(const T_a& a, const T_z& z, double precision = 1e-16,
48+
int max_steps = 250) {
4849
using stan::math::lgamma;
4950
using stan::math::log;
5051
using stan::math::value_of;
@@ -119,8 +120,7 @@ inline log_gamma_q_result<return_type_t<T_a, T_z>> log_gamma_q_dgamma(
119120

120121
// For z > a + 1, use continued fraction for better numerical stability
121122
if (z_dbl > a_dbl + 1.0) {
122-
result.log_q
123-
= internal::log_q_gamma_cf(a_dbl, z_dbl, precision, max_steps);
123+
result.log_q = internal::log_q_gamma_cf(a_dbl, z_dbl, precision, max_steps);
124124

125125
// For gradient, use: d/da log(Q) = (1/Q) * dQ/da
126126
// grad_reg_inc_gamma computes dQ/da

0 commit comments

Comments
 (0)