1 #ifndef STAN_MATH_PRIM_FUN_COV_EXP_QUAD_HPP
2 #define STAN_MATH_PRIM_FUN_COV_EXP_QUAD_HPP
3 
4 #include <stan/math/prim/meta.hpp>
5 #include <stan/math/prim/fun/Eigen.hpp>
6 #include <stan/math/prim/fun/gp_exp_quad_cov.hpp>
7 #include <stan/math/prim/fun/squared_distance.hpp>
8 #include <vector>
9 #include <cmath>
10 
11 namespace stan {
12 namespace math {
13 
14 /**
15  * @deprecated use <code>gp_exp_quad_cov</code>
16  */
17 template <typename T_x, typename T_sigma, typename T_l>
18 inline typename Eigen::Matrix<return_type_t<T_x, T_sigma, T_l>, Eigen::Dynamic,
19                               Eigen::Dynamic>
cov_exp_quad(const std::vector<T_x> & x,const T_sigma & sigma,const T_l & length_scale)20 cov_exp_quad(const std::vector<T_x>& x, const T_sigma& sigma,
21              const T_l& length_scale) {
22   return gp_exp_quad_cov(x, sigma, length_scale);
23 }
24 
25 /**
26  * @deprecated use <code>gp_exp_quad_cov</code>
27  */
28 template <typename T_x, typename T_sigma, typename T_l>
29 inline typename Eigen::Matrix<return_type_t<T_x, T_sigma, T_l>, Eigen::Dynamic,
30                               Eigen::Dynamic>
cov_exp_quad(const std::vector<T_x> & x,const T_sigma & sigma,const std::vector<T_l> & length_scale)31 cov_exp_quad(const std::vector<T_x>& x, const T_sigma& sigma,
32              const std::vector<T_l>& length_scale) {
33   return gp_exp_quad_cov(x, sigma, length_scale);
34 }
35 
36 /**
37  * @deprecated use <code>gp_exp_quad_cov</code>
38  */
39 template <typename T_x1, typename T_x2, typename T_sigma, typename T_l>
40 inline typename Eigen::Matrix<return_type_t<T_x1, T_x2, T_sigma, T_l>,
41                               Eigen::Dynamic, Eigen::Dynamic>
cov_exp_quad(const std::vector<T_x1> & x1,const std::vector<T_x2> & x2,const T_sigma & sigma,const T_l & length_scale)42 cov_exp_quad(const std::vector<T_x1>& x1, const std::vector<T_x2>& x2,
43              const T_sigma& sigma, const T_l& length_scale) {
44   return gp_exp_quad_cov(x1, x2, sigma, length_scale);
45 }
46 
47 /**
48  * @deprecated use <code>gp_exp_quad_cov</code>
49  */
50 template <typename T_x1, typename T_x2, typename T_sigma, typename T_l>
51 inline typename Eigen::Matrix<return_type_t<T_x1, T_x2, T_sigma, T_l>,
52                               Eigen::Dynamic, Eigen::Dynamic>
cov_exp_quad(const std::vector<T_x1> & x1,const std::vector<T_x2> & x2,const T_sigma & sigma,const std::vector<T_l> & length_scale)53 cov_exp_quad(const std::vector<T_x1>& x1, const std::vector<T_x2>& x2,
54              const T_sigma& sigma, const std::vector<T_l>& length_scale) {
55   return gp_exp_quad_cov(x1, x2, sigma, length_scale);
56 }
57 }  // namespace math
58 }  // namespace stan
59 #endif
60