1#ifndef STAN_MATH_PRIM_FUN_MEAN_HPP
2#define STAN_MATH_PRIM_FUN_MEAN_HPP
21template <
typename T, require_container_t<T>* =
nullptr>
25 [](
const auto& a) {
return a.mean(); });
typename return_type< Ts... >::type return_type_t
Convenience type for the return type of the specified template parameters.
scalar_type_t< T > mean(const T &m)
Returns the sample mean (i.e., average) of the coefficients in the specified std 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.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...