1 #ifndef STAN_MATH_PRIM_MAT_FUN_READ_COV_L_HPP
2 #define STAN_MATH_PRIM_MAT_FUN_READ_COV_L_HPP
22 Eigen::Matrix<T, Eigen::Dynamic, Eigen::Dynamic>
23 read_cov_L(
const Eigen::Array<T, Eigen::Dynamic, 1>& CPCs,
24 const Eigen::Array<T, Eigen::Dynamic, 1>& sds,
26 size_t K = sds.rows();
29 return sds.matrix().asDiagonal() *
read_corr_L(CPCs, K, log_prob);
const double LOG_2
The natural logarithm of 2, .
Eigen::Matrix< T, Eigen::Dynamic, Eigen::Dynamic > read_cov_L(const Eigen::Array< T, Eigen::Dynamic, 1 > &CPCs, const Eigen::Array< T, Eigen::Dynamic, 1 > &sds, T &log_prob)
This is the function that should be called prior to evaluating the density of any elliptical distribu...
Eigen::Matrix< T, Eigen::Dynamic, Eigen::Dynamic > read_corr_L(const Eigen::Array< T, Eigen::Dynamic, 1 > &CPCs, const size_t K)
Return the Cholesky factor of the correlation matrix of the specified dimensionality corresponding to...