Stan Math Library  2.20.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 
7 #include <boost/math/tools/promotion.hpp>
8 
9 namespace stan {
10 namespace math {
11 
33 template <bool propto, typename T_y, typename T_covar, typename T_w>
34 typename boost::math::tools::promote_args<T_y, T_covar, T_w>::type multi_gp_log(
35  const Eigen::Matrix<T_y, Eigen::Dynamic, Eigen::Dynamic>& y,
36  const Eigen::Matrix<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 typename boost::math::tools::promote_args<T_y, T_covar, T_w>::type
47  const Eigen::Matrix<T_y, Eigen::Dynamic, Eigen::Dynamic>& y,
48  const Eigen::Matrix<T_covar, Eigen::Dynamic, Eigen::Dynamic>& Sigma,
49  const Eigen::Matrix<T_w, Eigen::Dynamic, 1>& w) {
50  return multi_gp_lpdf<T_y, T_covar, T_w>(y, Sigma, w);
51 }
52 
53 } // namespace math
54 } // namespace stan
55 #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–2018, Stan Development Team.