| Stan Math Library 2.6.3 probability, sampling & optimization

- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

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
4 #include <stan/math/prim/scal/meta/is_vector.hpp>
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 {
13 enum { value = stan::is_vector<T>::value };
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> {
22 enum { value = stan::is_vector_like<T>::value };
23 };
24 }
25 #endif
26
stan::is_vector_like
Definition: is_vector_like.hpp:12
is_vector.hpp
stan::is_vector
Definition: is_vector.hpp:10
stan::is_vector_like::value
Definition: is_vector_like.hpp:13

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