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

◆ wishart_cholesky_rng()

template<class RNG >
Eigen::MatrixXd stan::math::wishart_cholesky_rng ( double  nu,
const Eigen::MatrixXd &  L_S,
RNG &  rng 
)
inline

Return a random Cholesky factor of the inverse covariance matrix of the specified dimensionality drawn from the Wishart distribution with the specified degrees of freedom using the specified random number generator.

Template Parameters
RNGrandom number generator type
Parameters
[in]nuscalar degrees of freedom
[in]L_Slower Cholesky factor of the scale matrix
[in,out]rngrandom-number generator
Returns
random lower Cholesky factor drawn from the given inverse Wishart distribution
Exceptions
std::domain_errorif the scale matrix is not a Cholesky factor
std::domain_errorif the degrees of freedom is greater than k - 1 where k is the dimension of L_S

Definition at line 31 of file wishart_cholesky_rng.hpp.