Stan Math Library  2.6.3
probability, sampling & optimization
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Macros
is_vector_like.hpp
Go to the documentation of this file.
1 #ifndef STAN_MATH_PRIM_SCAL_META_IS_VECTOR_LIKE_HPP
2 #define STAN_MATH_PRIM_SCAL_META_IS_VECTOR_LIKE_HPP
3 
5 
6 namespace stan {
7 
8  // ****************** additions for new VV *************************
9 
10  // handles scalar, eigen vec, eigen row vec, std vec
11  template <typename T>
12  struct is_vector_like {
14  };
15  template <typename T>
16  struct is_vector_like<T*> {
17  enum { value = true };
18  };
19  // handles const
20  template <typename T>
21  struct is_vector_like<const T> {
23  };
24 }
25 #endif
26 

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