Stan Math Library
4.9.0
Automatic Differentiation
|
void stan::math::grad_F32 | ( | T1 * | g, |
const T2 & | a1, | ||
const T3 & | a2, | ||
const T4 & | a3, | ||
const T5 & | b1, | ||
const T6 & | b2, | ||
const T7 & | z, | ||
const T8 & | 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.
grad_a1 | boolean indicating if gradient with respect to a1 is required |
grad_a2 | boolean indicating if gradient with respect to a2 is required |
grad_a3 | boolean indicating if gradient with respect to a3 is required |
grad_b1 | boolean indicating if gradient with respect to b1 is required |
grad_b2 | boolean indicating if gradient with respect to b2 is required |
grad_z | boolean indicating if gradient with respect to z is required |
T1 | a scalar type |
T2 | a scalar type |
T3 | a scalar type |
T4 | a scalar type |
T5 | a scalar type |
T6 | a scalar type |
T7 | a scalar type |
T8 | a scalar type |
[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 55 of file grad_F32.hpp.