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

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