1#ifndef STAN_MATH_OPENCL_PRIM_SQUARED_DISTANCE_HPP
2#define STAN_MATH_OPENCL_PRIM_SQUARED_DISTANCE_HPP
28template <
typename T_a,
typename T_b,
29 require_all_kernel_expressions_and_none_scalar_t<T_a, T_b>* =
nullptr>
31 const char* function =
"squared_distance (OpenCL)";
void check_vector(const char *function, const char *name, const Mat &x)
Check the input is either a row vector or column vector or a matrix with a single row or column.
auto sum(const std::vector< T > &m)
Return the sum of the entries of the specified standard vector.
auto squared_distance(const T_a &a, const T_b &b)
Returns the squared distance.
fvar< T > square(const fvar< T > &x)
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...