1 #ifndef STAN_MATH_PRIM_MAT_FUN_PROD_HPP 2 #define STAN_MATH_PRIM_MAT_FUN_PROD_HPP 17 inline T
prod(
const std::vector<T>& v) {
20 Eigen::Map<const Eigen::Matrix<T, Eigen::Dynamic, 1>> m(&v[0], v.size());
30 template <
typename T,
int R,
int C>
31 inline T
prod(
const Eigen::Matrix<T, R, C>& v) {
T prod(const std::vector< T > &v)
Returns the product of the coefficients of the specified standard vector.