Stan Math Library  2.20.0
reverse mode automatic differentiation
wishart_log.hpp
Go to the documentation of this file.
1 #ifndef STAN_MATH_PRIM_MAT_PROB_WISHART_LOG_HPP
2 #define STAN_MATH_PRIM_MAT_PROB_WISHART_LOG_HPP
3 
7 #include <boost/math/tools/promotion.hpp>
8 
9 namespace stan {
10 namespace math {
11 
44 template <bool propto, typename T_y, typename T_dof, typename T_scale>
45 typename boost::math::tools::promote_args<T_y, T_dof, T_scale>::type
46 wishart_log(const Eigen::Matrix<T_y, Eigen::Dynamic, Eigen::Dynamic>& W,
47  const T_dof& nu,
48  const Eigen::Matrix<T_scale, Eigen::Dynamic, Eigen::Dynamic>& S) {
49  return wishart_lpdf<propto, T_y, T_dof, T_scale>(W, nu, S);
50 }
51 
55 template <typename T_y, typename T_dof, typename T_scale>
56 inline typename boost::math::tools::promote_args<T_y, T_dof, T_scale>::type
57 wishart_log(const Eigen::Matrix<T_y, Eigen::Dynamic, Eigen::Dynamic>& W,
58  const T_dof& nu,
59  const Eigen::Matrix<T_scale, Eigen::Dynamic, Eigen::Dynamic>& S) {
60  return wishart_lpdf<T_y, T_dof, T_scale>(W, nu, S);
61 }
62 
63 } // namespace math
64 } // namespace stan
65 #endif
boost::math::tools::promote_args< T_y, T_dof, T_scale >::type 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 Wishart density for the given W, degrees of freedom, and scale matrix.
Definition: wishart_log.hpp:46

     [ Stan Home Page ] © 2011–2018, Stan Development Team.