Stan Math Library  2.15.0
reverse mode automatic differentiation
inv_wishart_log.hpp
Go to the documentation of this file.
1 #ifndef STAN_MATH_PRIM_MAT_PROB_INV_WISHART_LOG_HPP
2 #define STAN_MATH_PRIM_MAT_PROB_INV_WISHART_LOG_HPP
3 
6 #include <boost/math/tools/promotion.hpp>
7 
8 namespace stan {
9  namespace math {
10 
31  template <bool propto,
32  typename T_y, typename T_dof, typename T_scale>
33  typename boost::math::tools::promote_args<T_y, T_dof, T_scale>::type
34  inv_wishart_log(const Eigen::Matrix<T_y, Eigen::Dynamic, Eigen::Dynamic>& W,
35  const T_dof& nu,
36  const Eigen::Matrix
37  <T_scale, Eigen::Dynamic, Eigen::Dynamic>& S) {
38  return inv_wishart_lpdf<propto, T_y, T_dof, T_scale>(W, nu, S);
39  }
40 
44  template <typename T_y, typename T_dof, typename T_scale>
45  inline
46  typename boost::math::tools::promote_args<T_y, T_dof, T_scale>::type
47  inv_wishart_log(const Eigen::Matrix<T_y, Eigen::Dynamic, Eigen::Dynamic>& W,
48  const T_dof& nu,
49  const Eigen::Matrix
50  <T_scale, Eigen::Dynamic, Eigen::Dynamic>& S) {
51  return inv_wishart_lpdf<T_y, T_dof, T_scale>(W, nu, S);
52  }
53 
54  }
55 }
56 #endif
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...

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