Stan Math Library  2.15.0
reverse mode automatic differentiation
multi_gp_cholesky_log.hpp
Go to the documentation of this file.
1 #ifndef STAN_MATH_PRIM_MAT_PROB_MULTI_GP_CHOLESKY_LOG_HPP
2 #define STAN_MATH_PRIM_MAT_PROB_MULTI_GP_CHOLESKY_LOG_HPP
3 
6 #include <boost/math/tools/promotion.hpp>
7 
8 namespace stan {
9  namespace math {
32  template <bool propto,
33  typename T_y, typename T_covar, typename T_w>
34  typename boost::math::tools::promote_args<T_y, T_covar, T_w>::type
35  multi_gp_cholesky_log(const Eigen::Matrix
36  <T_y, Eigen::Dynamic, Eigen::Dynamic>& y,
37  const Eigen::Matrix
38  <T_covar, Eigen::Dynamic, Eigen::Dynamic>& L,
39  const Eigen::Matrix<T_w, Eigen::Dynamic, 1>& w) {
40  return multi_gp_cholesky_lpdf<propto, T_y, T_covar, T_w>(y, L, w);
41  }
42 
46  template <typename T_y, typename T_covar, typename T_w>
47  inline
48  typename boost::math::tools::promote_args<T_y, T_covar, T_w>::type
49  multi_gp_cholesky_log(const Eigen::Matrix
50  <T_y, Eigen::Dynamic, Eigen::Dynamic>& y,
51  const Eigen::Matrix
52  <T_covar, Eigen::Dynamic, Eigen::Dynamic>& L,
53  const Eigen::Matrix<T_w, Eigen::Dynamic, 1>& w) {
54  return multi_gp_cholesky_lpdf<T_y, T_covar, T_w>(y, L, w);
55  }
56 
57  }
58 }
59 #endif
boost::math::tools::promote_args< T_y, T_covar, T_w >::type multi_gp_cholesky_log(const Eigen::Matrix< T_y, Eigen::Dynamic, Eigen::Dynamic > &y, const Eigen::Matrix< T_covar, Eigen::Dynamic, Eigen::Dynamic > &L, const Eigen::Matrix< T_w, Eigen::Dynamic, 1 > &w)
The log of a multivariate Gaussian Process for the given y, w, and a Cholesky factor L of the kernel ...

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