Stan Math Library
4.9.0
Automatic Differentiation
|
void stan::math::grad_F32 | ( | T * | g, |
const T & | a1, | ||
const T & | a2, | ||
const T & | a3, | ||
const T & | b1, | ||
const T & | b2, | ||
const T & | z, | ||
const T & | precision = 1e-6 , |
||
int | max_steps = 1e5 |
||
) |
Gradients of the hypergeometric function, 3F2.
Calculate the gradients of the hypergeometric function (3F2) as the power series stopping when the series converges to within precision
or throwing when the function takes max_steps
steps.
This power-series representation converges for all gradients under the same conditions as the 3F2 function itself.
T | type of arguments and result |
[out] | g | g pointer to array of six values of type T, result. |
[in] | a1 | a1 see generalized hypergeometric function definition. |
[in] | a2 | a2 see generalized hypergeometric function definition. |
[in] | a3 | a3 see generalized hypergeometric function definition. |
[in] | b1 | b1 see generalized hypergeometric function definition. |
[in] | b2 | b2 see generalized hypergeometric function definition. |
[in] | z | z see generalized hypergeometric function definition. |
[in] | precision | precision of the infinite sum |
[in] | max_steps | number of steps to take |
Definition at line 39 of file grad_F32.hpp.