1 #ifndef STAN_MATH_PRIM_ARR_FUN_VALUE_OF_HPP 2 #define STAN_MATH_PRIM_ARR_FUN_VALUE_OF_HPP 21 inline std::vector<typename child_type<T>::type>
value_of(
22 const std::vector<T>& x) {
23 size_t size = x.size();
24 std::vector<typename child_type<T>::type> result(size);
25 for (
size_t i = 0; i <
size; i++)
41 inline const std::vector<double>&
value_of(
const std::vector<double>& x) {
56 inline const std::vector<int>&
value_of(
const std::vector<int>& x) {
return x; }
T value_of(const fvar< T > &v)
Return the value of the specified variable.
int size(const std::vector< T > &x)
Return the size of the specified standard vector.