Stan Math Library
5.0.0
Automatic Differentiation
|
return_type_t< T_y, T_dof, T_scale > stan::math::wishart_cholesky_lpdf | ( | const T_y & | L_Y, |
const T_dof & | nu, | ||
const T_scale & | L_S | ||
) |
Return the natural logarithm of the unnormalized Wishart density of the specified lower-triangular Cholesky factor variate, positive degrees of freedom, and lower-triangular Cholesky factor of the scale matrix.
The scale matrix, L_S
, must be a lower Cholesky factor dimension, k, is implicit nu must be greater than k-1
The change of variables from the input positive-definite matrix to the Cholesky factor is given in Theorem 2.1.9 in Muirhead, R. J. (2005). Aspects of Multivariate Statistical Theory. Wiley-Interscience.
T_y | Cholesky factor matrix |
T_dof | scalar degrees of freedom |
T_scale | Cholesky factor matrix |
L_Y | lower triangular Cholesky factor of the inverse covariance matrix |
nu | scalar degrees of freedom |
L_S | lower triangular Cholesky factor of the scale matrix |
std::domain_error | if nu is not greater than k-1 |
std::domain_error | if L_S is not a valid Cholesky factor |
Definition at line 42 of file wishart_cholesky_lpdf.hpp.