1 #ifndef STAN_MATH_PRIM_MAT_FUN_COV_EXP_QUAD_HPP 2 #define STAN_MATH_PRIM_MAT_FUN_COV_EXP_QUAD_HPP 17 template <
typename T_x,
typename T_sigma,
typename T_l>
19 typename Eigen::Matrix<typename stan::return_type<T_x, T_sigma, T_l>::type,
20 Eigen::Dynamic, Eigen::Dynamic>
22 const T_l& length_scale) {
29 template <
typename T_x,
typename T_sigma,
typename T_l>
31 typename Eigen::Matrix<typename stan::return_type<T_x, T_sigma, T_l>::type,
32 Eigen::Dynamic, Eigen::Dynamic>
34 const std::vector<T_l>& length_scale) {
41 template <
typename T_x1,
typename T_x2,
typename T_sigma,
typename T_l>
42 inline typename Eigen::Matrix<
45 cov_exp_quad(
const std::vector<T_x1>& x1,
const std::vector<T_x2>& x2,
46 const T_sigma& sigma,
const T_l& length_scale) {
53 template <
typename T_x1,
typename T_x2,
typename T_sigma,
typename T_l>
54 inline typename Eigen::Matrix<
55 typename stan::return_type<T_x1, T_x2, T_sigma, T_l>::type, Eigen::Dynamic,
57 cov_exp_quad(
const std::vector<T_x1>& x1,
const std::vector<T_x2>& x2,
58 const T_sigma& sigma,
const std::vector<T_l>& length_scale) {
Eigen::Matrix< typename stan::return_type< T_x, T_sigma, T_l >::type, Eigen::Dynamic, Eigen::Dynamic > cov_exp_quad(const std::vector< T_x > &x, const T_sigma &sigma, const T_l &length_scale)
Eigen::Matrix< typename stan::return_type< T_x, T_sigma, T_l >::type, Eigen::Dynamic, Eigen::Dynamic > gp_exp_quad_cov(const std::vector< T_x > &x, const T_sigma &sigma, const T_l &length_scale)
Returns a squared exponential kernel.
boost::math::tools::promote_args< double, typename scalar_type< T >::type, typename return_type< Types_pack... >::type >::type type