1#ifndef STAN_MATH_OPENCL_PRIM_MEAN_HPP
2#define STAN_MATH_OPENCL_PRIM_MEAN_HPP
19 require_nonscalar_prim_or_rev_kernel_expression_t<T>* =
nullptr>
22 return sum(m) / m.size();
scalar_type_t< T > mean(const T &m)
Returns the sample mean (i.e., average) of the coefficients in the specified std vector,...
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.
typename scalar_type< T >::type scalar_type_t
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...