Automatic Differentiation
 
Loading...
Searching...
No Matches

◆ check_2F1_converges()

template<typename T_a1 , typename T_a2 , typename T_b1 , typename T_z >
void stan::math::check_2F1_converges ( const char *  function,
const T_a1 &  a1,
const T_a2 &  a2,
const T_b1 &  b1,
const T_z &  z 
)
inline

Check if the hypergeometric function (2F1) called with supplied arguments will converge, assuming arguments are finite values.

Template Parameters
T_a1Type of a1
T_a2Type of a2
T_b1Type of b1
T_zType of z
Parameters
functionName of function ultimately relying on 2F1 (for error messages)
a1Variable to check
a2Variable to check
b1Variable to check
zVariable to check
Exceptions
<code>domain_error</code>if 2F1(a1, a2, b1, z) does not meet convergence conditions, or if any coefficient is NaN.

Definition at line 35 of file check_2F1_converges.hpp.