1 #ifndef STAN_MATH_FWD_ARR_FUN_SUM_HPP 2 #define STAN_MATH_FWD_ARR_FUN_SUM_HPP 23 std::vector<T> vals(m.size());
24 std::vector<T> tans(m.size());
25 for (
size_t i = 0; i < m.size(); ++i) {
27 tans[i] = m[i].tangent();
fvar< T > sum(const std::vector< fvar< T > > &m)
Return the sum of the entries of the specified standard vector.