Stan Math Library  2.20.0
reverse mode automatic differentiation
is_vector_like.hpp
Go to the documentation of this file.
1 #ifndef STAN_MATH_PRIM_MAT_META_IS_VECTOR_LIKE_HPP
2 #define STAN_MATH_PRIM_MAT_META_IS_VECTOR_LIKE_HPP
3 
6 
7 namespace stan {
8 
21 template <typename T, int R, int C>
22 struct is_vector_like<Eigen::Matrix<T, R, C> > {
23  enum { value = true };
24 };
25 
38 template <typename T, int R, int C>
39 struct is_vector_like<Eigen::Array<T, R, C> > {
40  enum { value = true };
41 };
42 } // namespace stan
43 #endif
Template metaprogram indicates whether a type is vector_like.
(Expert) Numerical traits for algorithmic differentiation variables.

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