Stan Math Library  2.15.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 
6 #include <boost/math/tools/promotion.hpp>
7 
8 namespace stan {
9  namespace math {
10 
40  template <bool propto,
41  typename T_y, typename T_dof, typename T_scale>
42  typename boost::math::tools::promote_args<T_y, T_dof, T_scale>::type
43  wishart_log(const Eigen::Matrix<T_y, Eigen::Dynamic, Eigen::Dynamic>& W,
44  const T_dof& nu,
45  const Eigen::Matrix<T_scale, Eigen::Dynamic, Eigen::Dynamic>&
46  S) {
47  return wishart_lpdf<propto, T_y, T_dof, T_scale>(W, nu, S);
48  }
49 
53  template <typename T_y, typename T_dof, typename T_scale>
54  inline
55  typename boost::math::tools::promote_args<T_y, T_dof, T_scale>::type
56  wishart_log(const Eigen::Matrix<T_y, Eigen::Dynamic, Eigen::Dynamic>& W,
57  const T_dof& nu,
58  const Eigen::Matrix
59  <T_scale, Eigen::Dynamic, Eigen::Dynamic>& S) {
60  return wishart_lpdf<T_y, T_dof, T_scale>(W, nu, S);
61  }
62 
63  }
64 }
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:43

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