[ ] (feature) the template parameter propto (perhaps mangled somehow?) should be accessible from within the function definition body as an int with value 0 or 1 to allow conditionals branching on proportionality.
[ ] (bug fix) the template parameter should not be definable as a local variable; either it is going to need to be mangled or propto will become a reserved variable _within functions ending in lp
Issue by bob-carpenter Monday Feb 16, 2015 at 04:27 GMT Originally opened as https://github.com/stan-dev/stan/issues/1299
Any function ending in
_log
provides a template parameterpropto
, just like any of our built-in probability functions. For example,generates the signature
propto
(perhaps mangled somehow?) should be accessible from within the function definition body as an int with value 0 or 1 to allow conditionals branching on proportionality.propto
will become a reserved variable _within functions ending in lp