Stan Math Library
4.9.0
Automatic Differentiation
|
return_type_t< T_y, T_Mu, T_Sigma, T_D > stan::math::matrix_normal_prec_lpdf | ( | const T_y & | y, |
const T_Mu & | Mu, | ||
const T_Sigma & | Sigma, | ||
const T_D & | D | ||
) |
The log of the matrix normal density for the given y, mu, Sigma and D where Sigma and D are given as precision matrices, not covariance matrices.
T_y | type of scalar |
T_Mu | type of location |
T_Sigma | type of Sigma |
T_D | type of D |
y | An mxn matrix. |
Mu | The mean matrix. |
Sigma | The mxm inverse covariance matrix (i.e., the precision matrix) of the rows of y. |
D | The nxn inverse covariance matrix (i.e., the precision matrix) of the columns of y. |
std::domain_error | if Sigma or D are not square, not symmetric, or not semi-positive definite. |
Definition at line 36 of file matrix_normal_prec_lpdf.hpp.