![]() |
Stan
2.5.0
probability, sampling & optimization
|
Template metaprogram to calculate whether a summand needs to be included in a proportional (log) probability calculation. More...
#include <traits.hpp>
Public Types | |
| enum | { value } |
true if a term with the specified propto value and subterm types should be included in a proportionality calculation. More... | |
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 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<T>.
| propto | true if calculating up to a proportionality constant. |
| T1 | First |
Definition at line 35 of file traits.hpp.
| anonymous enum |
true if a term with the specified propto value and subterm types should be included in a proportionality calculation.
| Enumerator | |
|---|---|
| value | |
Definition at line 42 of file traits.hpp.