Automatic Differentiation
 
Loading...
Searching...
No Matches
stan::math::include_summand< propto, T, T_pack > Struct Template Reference

Detailed Description

template<bool propto, typename T = double, typename... T_pack>
struct stan::math::include_summand< propto, T, T_pack >

Template metaprogram to calculate whether a summand needs to be included in a proportional (log) probability calculation.

For usage, the first boolean parameter should be set to true if calculating a term up to proportionality. Other type parameters should be included for all of the types of variables in a term.

The metaprogram can take an arbitrary number of types.

The value enum will be true if the propto parameter is false or if any of the other template arguments are not constants as defined by stan::is_constant_all<T>.

Example use: include_summand<false, double, var, double, double>

Template Parameters
proptotrue if calculating up to a proportionality constant.
T(optional). A type
T_pack(optional). A parameter pack of types. This is used to extend the applicability of the function to an arbitrary number of types.

Definition at line 37 of file include_summand.hpp.

#include <include_summand.hpp>

+ Inheritance diagram for stan::math::include_summand< propto, T, T_pack >:

The documentation for this struct was generated from the following file: