Stan Math Library
5.0.0
Automatic Differentiation
|
|
inline |
Returns a squared exponential kernel.
This function is for the cross covariance matrix needed to compute the posterior predictive density.
T_x1 | type of first std::vector of elements |
T_x2 | type of second std::vector of elements |
T_s | type of sigma |
T_l | type of length scale |
x1 | std::vector of Eigen vectors of scalars. |
x2 | std::vector of Eigen vectors of scalars. |
sigma | standard deviation |
length_scale | std::vector of length scale |
std::domain_error | if sigma <= 0, l <= 0, or x is nan or infinite |
Definition at line 258 of file gp_exp_quad_cov.hpp.