template<typename T_a1 , typename T_a2 , typename T_a3 , typename T_b1 , typename T_b2 , typename T_z >
void stan::math::check_3F2_converges |
( |
const char * |
function, |
|
|
const T_a1 & |
a1, |
|
|
const T_a2 & |
a2, |
|
|
const T_a3 & |
a3, |
|
|
const T_b1 & |
b1, |
|
|
const T_b2 & |
b2, |
|
|
const T_z & |
z |
|
) |
| |
|
inline |
Check if the hypergeometric function (3F2) called with supplied arguments will converge, assuming arguments are finite values.
- Template Parameters
-
T_a1 | Type of a1 |
T_a2 | Type of a2 |
T_a3 | Type of a3 |
T_b1 | Type of b1 |
T_b2 | Type of b2 |
T_z | Type of z |
- Parameters
-
function | Name of function ultimately relying on 3F2 (for error & messages) |
a1 | Variable to check |
a2 | Variable to check |
a3 | Variable to check |
b1 | Variable to check |
b2 | Variable to check |
z | Variable to check |
- Exceptions
-
<code>domain_error</code> | if 3F2(a1, a2, a3, b1, b2, z) does not meet convergence conditions, or if any coefficient is NaN. |
Definition at line 40 of file check_3F2_converges.hpp.