All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Macros Groups
length.hpp
Go to the documentation of this file.
#ifndef STAN_MATH_PRIM_ARR_META_LENGTH_HPP
#define STAN_MATH_PRIM_ARR_META_LENGTH_HPP
#include <cstdlib>
#include <vector>
namespace stan {
template <typename T>
size_t length(const std::vector<T>& x) {
return x.size();
}
}
#endif
stan::length
size_t length(const std::vector< T > &x)
Definition: length.hpp:10

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