1 #ifndef STAN_MATH_PRIM_ARR_FUN_DOT_SELF_HPP
2 #define STAN_MATH_PRIM_ARR_FUN_DOT_SELF_HPP
10 inline double dot_self(
const std::vector<double>& x) {
12 for (
size_t i = 0; i < x.size(); ++i)
fvar< T > sum(const std::vector< fvar< T > > &m)
Return the sum of the entries of the specified standard vector.
fvar< T > dot_self(const Eigen::Matrix< fvar< T >, R, C > &v)