Stan Math Library  2.6.3
probability, sampling & optimization
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Macros
is_constant_struct.hpp
Go to the documentation of this file.
1 #ifndef STAN_MATH_PRIM_SCAL_META_IS_CONSTANT_STRUCT_HPP
2 #define STAN_MATH_PRIM_SCAL_META_IS_CONSTANT_STRUCT_HPP
3 
6 #include <vector>
7 
8 
9 namespace stan {
10 
15  template <typename T>
18  };
19 
20 
21  template <typename T>
22  struct is_constant_struct<std::vector<T> > {
24  };
25 
26  template <typename T, int R, int C>
27  struct is_constant_struct<Eigen::Matrix<T, R, C> > {
29  };
30 
31  template <typename T>
32  struct is_constant_struct<Eigen::Block<T> > {
34  };
35 
36 }
37 #endif
38 
Metaprogramming struct to detect whether a given type is constant in the mathematical sense (not the ...
Definition: is_constant.hpp:22
Metaprogram to determine if a type has a base scalar type that can be assigned to type double...

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