1#ifndef STAN_MATH_PRIM_FUN_HYPERGEOMETRIC_2F2_HPP
2#define STAN_MATH_PRIM_FUN_HYPERGEOMETRIC_2F2_HPP
22template <
typename Ta,
typename Tb,
typename Tz,
23 require_all_eigen_t<Ta, Tb>* =
nullptr,
24 require_stan_scalar_t<Tz>* =
nullptr>
27 if (a.size() != 2 || b.size() != 2) {
28 std::stringstream msg;
29 msg <<
"Inputs to hypergeometric 2F2 do not contain two values"
30 <<
"a: " << a <<
", b: " << b;
31 throw std::domain_error(msg.str());
typename return_type< Ts... >::type return_type_t
Convenience type for the return type of the specified template parameters.
return_type_t< Ta, Tb, Tz > hypergeometric_2F2(const Ta &a, const Tb &b, const Tz &z)
Returns the generalized hypergeometric function applied to the input arguments: .
FvarT hypergeometric_pFq(const Ta &a, const Tb &b, const Tz &z)
Returns the generalized hypergeometric (pFq) function applied to the input arguments.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...