size.hpp
Go to the documentation of this file.
#ifndef STAN_MATH_PRIM_MAT_FUN_SIZE_HPP
#define STAN_MATH_PRIM_MAT_FUN_SIZE_HPP
#include <vector>
namespace stan {
namespace math {
template <typename T>
inline int size(const std::vector<T>& x) {
return static_cast<int>(x.size());
}
}
}
#endif
stan
Definition: log_sum_exp.hpp:8
stan::math::size
int size(const std::vector< T > &x)
Return the size of the specified standard vector.
Definition: size.hpp:17

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