All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Macros Groups
sum.hpp
Go to the documentation of this file.
#ifndef STAN_MATH_PRIM_MAT_FUN_SUM_HPP
#define STAN_MATH_PRIM_MAT_FUN_SUM_HPP
#include <stan/math/prim/mat/fun/Eigen.hpp>
#include <stan/math/prim/arr/fun/sum.hpp>
#include <vector>
namespace stan {
namespace math {
template <typename T, int R, int C>
inline double sum(const Eigen::Matrix<T, R, C>& v) {
return v.sum();
}
}
}
#endif
stan::math::sum
fvar< T > sum(const std::vector< fvar< T > > &m)
Return the sum of the entries of the specified standard vector.
Definition: sum.hpp:20
sum.hpp
Eigen.hpp

[ Stan Home Page ] © 2011–2015, Stan Development Team.