1 #ifndef STAN_MATH_PRIM_MAT_PROB_INV_WISHART_LOG_HPP 2 #define STAN_MATH_PRIM_MAT_PROB_INV_WISHART_LOG_HPP 7 #include <boost/math/tools/promotion.hpp> 32 template <
bool propto,
typename T_y,
typename T_dof,
typename T_scale>
33 typename boost::math::tools::promote_args<T_y, T_dof, T_scale>::type
35 const Eigen::Matrix<T_y, Eigen::Dynamic, Eigen::Dynamic>& W,
37 const Eigen::Matrix<T_scale, Eigen::Dynamic, Eigen::Dynamic>& S) {
38 return inv_wishart_lpdf<propto, T_y, T_dof, T_scale>(W, nu, S);
44 template <
typename T_y,
typename T_dof,
typename T_scale>
45 inline typename boost::math::tools::promote_args<T_y, T_dof, T_scale>::type
47 const Eigen::Matrix<T_y, Eigen::Dynamic, Eigen::Dynamic>& W,
49 const Eigen::Matrix<T_scale, Eigen::Dynamic, Eigen::Dynamic>& S) {
50 return inv_wishart_lpdf<T_y, T_dof, T_scale>(W, nu, S);
boost::math::tools::promote_args< T_y, T_dof, T_scale >::type inv_wishart_log(const Eigen::Matrix< T_y, Eigen::Dynamic, Eigen::Dynamic > &W, const T_dof &nu, const Eigen::Matrix< T_scale, Eigen::Dynamic, Eigen::Dynamic > &S)
The log of the Inverse-Wishart density for the given W, degrees of freedom, and scale matrix...