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

◆ hcubature()

template<typename F , typename T_a , typename T_b , typename ParsTuple , typename TAbsErr , typename TRelErr >
auto stan::math::hcubature ( const F &  integrand,
const ParsTuple &  pars,
const int  dim,
const Eigen::Matrix< T_a, Eigen::Dynamic, 1 > &  a,
const Eigen::Matrix< T_b, Eigen::Dynamic, 1 > &  b,
const int  max_eval,
const TAbsErr  reqAbsError,
const TRelErr  reqRelError 
)
inline

Compute the [dim]-dimensional integral of the function \(f\) from \(a\) to \(b\) within specified relative and absolute tolerances or maximum number of evaluations.

\(a\) and \(b\) can be finite or infinite and should be given as vectors.

Template Parameters
FType of f
T_aType of lower limit of integration
T_bType of upper limit of integration
ParsTupleType of parameter-tuple
TAbsErrType of absolute error
TRelErrType of relative error
Parameters
integranda functor with signature given above
parsparameters to be passed to f as a tuple
dimdimension of the integral
alower limit of integration as vector
bupper limit of integration as vector
max_evalmaximal number of evaluations
reqAbsErrorabsolute error
reqRelErrorrelative error as vector
Returns
The value of the [dim]-dimensional integral of \(f\) from \(a\) to \(b\).
Exceptions
std::domain_errorno errors will be thrown.

Definition at line 405 of file hcubature.hpp.