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

◆ grad_F32()

template<typename T >
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.

Template Parameters
Ttype of arguments and result
Parameters
[out]gg pointer to array of six values of type T, result.
[in]a1a1 see generalized hypergeometric function definition.
[in]a2a2 see generalized hypergeometric function definition.
[in]a3a3 see generalized hypergeometric function definition.
[in]b1b1 see generalized hypergeometric function definition.
[in]b2b2 see generalized hypergeometric function definition.
[in]zz see generalized hypergeometric function definition.
[in]precisionprecision of the infinite sum
[in]max_stepsnumber of steps to take

Definition at line 39 of file grad_F32.hpp.