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

◆ multi_normal_prec_rng()

template<typename T_loc , class RNG >
StdVectorBuilder< true, Eigen::VectorXd, T_loc >::type stan::math::multi_normal_prec_rng ( const T_loc &  mu,
const Eigen::MatrixXd &  S,
RNG &  rng 
)
inline

Return a multivariate normal random variate with the given location and precision using the specified random number generator.

mu can be either an Eigen::VectorXd, an Eigen::RowVectorXd, or a std::vector of either of those types.

Template Parameters
T_locType of location parameter
RNGType of pseudo-random number generator
Parameters
mu(Sequence of) location parameter(s)
SPrecision matrix
rngrandom number generator
Exceptions
std::domain_errorif S is not positive definite, or std::invalid_argument if the length of (each) mu is not equal to the number of rows and columns in S

Definition at line 34 of file multi_normal_prec_rng.hpp.