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

◆ exponential_rng()

template<typename T_inv , class RNG >
VectorBuilder< true, double, T_inv >::type stan::math::exponential_rng ( const T_inv &  beta,
RNG &  rng 
)
inline

Return a exponential random variate with inverse scale beta using the specified random number generator.

beta can be a scalar or a one-dimensional container.

Template Parameters
T_invType of inverse scale parameter
RNGclass of random number generator
Parameters
beta(Sequence of) positive inverse scale parameter(s)
rngrandom number generator
Returns
(Sequence of) exponential random variate(s)
Exceptions
std::domain_errorif beta is nonpositive

Definition at line 28 of file exponential_rng.hpp.