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_a1 | Type of a1 |
T_a2 | Type of a2 |
T_b1 | Type of b1 |
T_z | Type of z |
- Parameters
-
function | Name of function ultimately relying on 2F1 (for error messages) |
a1 | Variable to check |
a2 | Variable to check |
b1 | Variable to check |
z | Variable 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.