Stan  1.0
probability, sampling & optimization
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  struct include_summand {
34 
40  enum {
41  value = ( !propto
48  )
49 
50  };
51 
52  };
53 
54 
55  }
56 
57 }
58 
59 #endif
Probability, optimization and sampling library.
Definition: agrad.cpp:6
Metaprogramming struct to detect whether a given type is constant in the mathematical sense (not the ...
Definition: traits.hpp:25
Template metaprogram to calculate whether a summand needs to be included in a proportional (log) prob...
Definition: traits.hpp:33

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