Stan Math Library
4.9.0
Automatic Differentiation
|
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>
propto | true 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>