1#ifndef STAN_MATH_OPENCL_PRIM_VARIANCE_HPP
2#define STAN_MATH_OPENCL_PRIM_VARIANCE_HPP
24 require_all_kernel_expressions_and_none_scalar_t<T>* =
nullptr>
Represents an arithmetic matrix on the OpenCL device.
auto sum_2d(T &&a)
Two dimensional sum - reduction of a kernel generator expression.
results_cl< T_results... > results(T_results &&... results)
Deduces types for constructing results_cl object.
expressions_cl< T_expressions... > expressions(T_expressions &&... expressions)
Deduces types for constructing expressions_cl object.
auto from_matrix_cl(const T &src)
Copies the source matrix that is stored on the OpenCL device to the destination Eigen matrix.
scalar_type_t< T > mean(const T &m)
Returns the sample mean (i.e., average) of the coefficients in the specified std vector,...
double variance(const T &a)
Return the sample variance of the var_value matrix Raise domain error if size is not greater than zer...
auto sum(const std::vector< T > &m)
Return the sum of the entries of the specified standard vector.
void check_nonzero_size(const char *function, const char *name, const T_y &y)
Check if the specified matrix/vector is of non-zero size.
fvar< T > square(const fvar< T > &x)
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...