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

◆ gp_exp_quad_cov_cross()

__kernel void stan::math::opencl_kernels::gp_exp_quad_cov_cross ( const __global double *  x1,
const __global double *  x2,
__global double *  res,
const double  sigma_sq,
const double  neg_half_inv_l_sq,
const int  size1,
const int  size2,
const int  element_size 
)

GPU part of calculation of squared exponential kernel.

This function is for the cross covariance matrix needed to compute the posterior predictive density.

Parameters
[in]x1first input vector or matrix
[in]x2second input vector or matrix
[out]ressquared distances between elements of x
sigma_sqsquared standard deviation
neg_half_inv_l_sq-0.5 / square(length scale)
size1number of elements in x1
size2number of elements in x2
element_sizethe number of doubles that make one element of x and y

Definition at line 72 of file gp_exp_quad_cov.hpp.