Stan Math Library  2.20.0
reverse mode automatic differentiation
index_type.hpp
Go to the documentation of this file.
1 #ifndef STAN_MATH_PRIM_ARR_META_INDEX_TYPE_HPP
2 #define STAN_MATH_PRIM_ARR_META_INDEX_TYPE_HPP
3 
5 #include <vector>
6 
7 namespace stan {
8 namespace math {
9 
16 template <typename T>
17 struct index_type<std::vector<T> > {
21  typedef typename std::vector<T>::size_type type;
22 };
23 
24 } // namespace math
25 } // namespace stan
26 
27 #endif
std::vector< T >::size_type type
Typedef for index of standard vectors.
Definition: index_type.hpp:21
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic >::Index size_type
Type for sizes and indexes in an Eigen matrix with double e.
Definition: typedefs.hpp:11
Primary template class for the metaprogram to compute the index type of a container.
Definition: index_type.hpp:18

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