Automatic Differentiation
 
Loading...
Searching...
No Matches

◆ gp_exp_quad_cov() [7/7]

template<typename T_x , typename T_sigma , require_st_arithmetic< T_x > * = nullptr, require_stan_scalar_t< T_sigma > * = nullptr>
Eigen::Matrix< var, -1, -1 > stan::math::gp_exp_quad_cov ( const std::vector< T_x > &  x,
const T_sigma  sigma,
const var  length_scale 
)
inline

Returns a squared exponential kernel.

Template Parameters
T_xtype of elements in the vector
Parameters
xstd::vector input that can be used in square distance Assumes each element of x is the same size
sigmastandard deviation
length_scalelength scale
Returns
squared distance
Exceptions
std::domain_errorif sigma <= 0, l <= 0, or x is nan or infinite

Definition at line 33 of file gp_exp_quad_cov.hpp.