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

◆ multi_normal_cholesky_lpdf() [2/3]

template<bool propto, typename T_y , typename T_loc , typename T_covar , require_any_not_vector_vt< is_stan_scalar, T_y, T_loc > * = nullptr, require_all_not_nonscalar_prim_or_rev_kernel_expression_t< T_y, T_loc, T_covar > * = nullptr>
return_type_t< T_y, T_loc, T_covar > stan::math::multi_normal_cholesky_lpdf ( const T_y &  y,
const T_loc &  mu,
const T_covar &  L 
)

The log of the multivariate normal density for the given y, mu, and a Cholesky factor L of the variance matrix.

Sigma = LL', a square, semi-positive definite matrix.

This version of the function is vectorized on y and mu.

Analytic expressions taken from http://qwone.com/~jason/writing/multivariateNormal.pdf written by Jason D. M. Rennie.

Parameters
yA scalar vector
muThe mean vector of the multivariate normal distribution.
LThe Cholesky decomposition of a variance matrix of the multivariate normal distribution
Returns
The log of the multivariate normal density.
Exceptions
std::domain_errorif LL' is not square, not symmetric, or not semi-positive definite.
Template Parameters
T_yType of scalar.
T_locType of location.
T_covarType of scale.

Sigma = LL', a square, semi-positive definite matrix.

Analytic expressions taken from http://qwone.com/~jason/writing/multivariateNormal.pdf written by Jason D. M. Rennie.

Parameters
yA scalar vector
muThe mean vector of the multivariate normal distribution.
LThe Cholesky decomposition of a variance matrix of the multivariate normal distribution
Returns
The log of the multivariate normal density.
Exceptions
std::domain_errorif LL' is not square, not symmetric, or not semi-positive definite.
Template Parameters
T_yType of scalar.
T_locType of location.
T_covarType of scale.

Definition at line 48 of file multi_normal_cholesky_lpdf.hpp.