![]() |
Stan Math Library
5.2.0
Automatic Differentiation
|
|
inline |
Compute log(Q(a,z)) and its gradient with respect to a using continued fraction expansion, where Q(a,z) = Gamma(a,z) / Gamma(a) is the regularized upper incomplete gamma function.
This uses a continued fraction representation for numerical stability when computing the upper incomplete gamma function in log space, along with analytical gradient computation.
| T_a | type of the shape parameter |
| T_z | type of the value parameter |
| a | shape parameter (must be positive) |
| z | value parameter (must be non-negative) |
| precision | convergence threshold, default of sqrt(machine_epsilon) |
| max_steps | maximum iterations for continued fraction |
Definition at line 95 of file log_gamma_q_dgamma.hpp.