Automatic Differentiation
 
Loading...
Searching...
No Matches
log_gamma_q_dgamma.hpp File Reference

Go to the source code of this file.

Namespaces

namespace  stan
 The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation from C or the boost::math::lgamma implementation.
 
namespace  stan::math
 Matrices and templated mathematical functions.
 
namespace  stan::math::internal
 A comparator that works for any container type that has the brackets operator.
 

Functions

template<typename T_a , typename T_z >
return_type_t< T_a, T_z > stan::math::internal::log_q_gamma_cf (const T_a &a, const T_z &z, double precision=LOG_Q_GAMMA_CF_PRECISION, int max_steps=250)
 Compute log(Q(a,z)) using continued fraction expansion for upper incomplete gamma function.
 
template<typename T_a , typename T_z >
std::pair< return_type_t< T_a, T_z >, return_type_t< T_a, T_z > > stan::math::log_gamma_q_dgamma (const T_a &a, const T_z &z, double precision=internal::LOG_Q_GAMMA_CF_PRECISION, int max_steps=250)
 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.
 

Variables

constexpr double stan::math::internal::LOG_Q_GAMMA_CF_PRECISION = 1.49012e-12