Stan  2.5.0
probability, sampling & optimization
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
traits.hpp
Go to the documentation of this file.
1 #ifndef STAN__PROB__TRAITS_HPP
2 #define STAN__PROB__TRAITS_HPP
3 
4 #include <stan/meta/traits.hpp>
5 #include <boost/math/tools/promotion.hpp>
6 
7 namespace stan {
8 
9  namespace prob {
10 
29  template <bool propto,
30  typename T1=double, typename T2=double,
31  typename T3=double, typename T4=double,
32  typename T5=double, typename T6=double,
33  typename T7=double, typename T8=double,
34  typename T9=double, typename T10=double>
35  struct include_summand {
36 
42  enum {
43  value = ( !propto
54  )
55 
56  };
57 
58  };
59 
60 
61  }
62 
63 }
64 
65 #endif
Metaprogramming struct to detect whether a given type is constant in the mathematical sense (not the ...
Definition: traits.hpp:43
Template metaprogram to calculate whether a summand needs to be included in a proportional (log) prob...
Definition: traits.hpp:35

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