Stan Math Library  2.15.0
reverse mode automatic differentiation
multi_gp_log.hpp
Go to the documentation of this file.
1 #ifndef STAN_MATH_PRIM_MAT_PROB_MULTI_GP_LOG_HPP
2 #define STAN_MATH_PRIM_MAT_PROB_MULTI_GP_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_covar, typename T_w>
33  typename boost::math::tools::promote_args<T_y, T_covar, T_w>::type
34  multi_gp_log(const Eigen::Matrix<T_y, Eigen::Dynamic, Eigen::Dynamic>& y,
35  const Eigen::Matrix
36  <T_covar, Eigen::Dynamic, Eigen::Dynamic>& Sigma,
37  const Eigen::Matrix<T_w, Eigen::Dynamic, 1>& w) {
38  return multi_gp_lpdf<propto, T_y, T_covar, T_w>(y, Sigma, w);
39  }
40 
44  template <typename T_y, typename T_covar, typename T_w>
45  inline
46  typename boost::math::tools::promote_args<T_y, T_covar, T_w>::type
47  multi_gp_log(const Eigen::Matrix<T_y, Eigen::Dynamic, Eigen::Dynamic>& y,
48  const Eigen::Matrix<T_covar, Eigen::Dynamic, Eigen::Dynamic>&
49  Sigma,
50  const Eigen::Matrix<T_w, Eigen::Dynamic, 1>& w) {
51  return multi_gp_lpdf<T_y, T_covar, T_w>(y, Sigma, w);
52  }
53 
54  }
55 }
56 #endif
boost::math::tools::promote_args< T_y, T_covar, T_w >::type multi_gp_log(const Eigen::Matrix< T_y, Eigen::Dynamic, Eigen::Dynamic > &y, const Eigen::Matrix< T_covar, Eigen::Dynamic, Eigen::Dynamic > &Sigma, const Eigen::Matrix< T_w, Eigen::Dynamic, 1 > &w)
The log of a multivariate Gaussian Process for the given y, Sigma, and w.

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