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

◆ integrate_1d_impl() [1/2]

template<typename F , typename T_a , typename T_b , typename... Args, require_any_st_fvar< T_a, T_b, Args... > * = nullptr>
return_type_t< T_a, T_b, Args... > stan::math::integrate_1d_impl ( const F &  f,
const T_a &  a,
const T_b &  b,
double  relative_tolerance,
std::ostream *  msgs,
const Args &...  args 
)
inline

Return the integral of f from a to b to the given relative tolerance.

Template Parameters
FType of f
T_atype of first limit
T_btype of second limit
Argstypes of parameter pack arguments
Parameters
fthe functor to integrate
alower limit of integration
bupper limit of integration
relative_tolerancerelative tolerance passed to Boost quadrature
[in,out]msgsthe print stream for warning messages
argsadditional arguments to pass to f
Returns
numeric integral of function f
Template Parameters
FType of f
T_atype of first limit
T_btype of second limit
Argstypes of parameter pack arguments
Parameters
fthe functor to integrate
alower limit of integration
bupper limit of integration
relative_tolerancerelative tolerance passed to Boost quadrature
[in,out]msgsthe print stream for warning messages
argsadditional arguments to pass to f
Returns
numeric integral of function f

Definition at line 31 of file integrate_1d.hpp.