inline typename boost::math::tools::promote_args<T>::type mean(const Eigen::Matrix<T,R,C>& m) { stan::math::check_nonzero_size("mean(%1%)",m,"m", (double*)0); return m.mean(); }
inline typename boost::math::tools::promote_args<T>::type mean(const Eigen::Matrix<T,R,C>& m) { stan::error_handling::check_nonzero_size("mean", "m", m); return m.mean(); }