Stan Math Library  2.20.0
reverse mode automatic differentiation
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 
7 namespace stan {
8 namespace math {
9 
34 template <bool propto, typename T = double, typename... T_pack>
36  enum {
38  || include_summand<propto, T_pack...>::value)
39  };
40 };
41 
42 template <bool propto, typename T>
43 struct include_summand<propto, T> {
49  enum {
52  };
53 };
54 
55 } // namespace math
56 
57 } // namespace stan
58 
59 #endif
Extends std::true_type when instantiated with zero or more template parameters, all of which extend t...
Definition: conjunction.hpp:14
Template metaprogram to calculate whether a summand needs to be included in a proportional (log) prob...

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