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

◆ uniform_rng()

template<typename T_alpha , typename T_beta , class RNG >
VectorBuilder< true, double, T_alpha, T_beta >::type stan::math::uniform_rng ( const T_alpha &  alpha,
const T_beta &  beta,
RNG &  rng 
)
inline

Return a uniform random variate for the given upper and lower bounds using the specified random number generator.

alpha and beta can each be a scalar or a one-dimensional container. Any non-scalar inputs must be the same size.

Template Parameters
T_alphatype of shape parameter
T_betatype of inverse scale parameter
RNGtype of random number generator
Parameters
alpha(Sequence of) lower bound parameter(s)
beta(Sequence of) upper bound parameter(s)
rngrandom number generator
Returns
(Sequence of) uniform random variate(s)
Exceptions
std::domain_errorif alpha or beta are non-finite
std::invalid_argumentif non-scalar arguments are of different sizes

Definition at line 35 of file uniform_rng.hpp.