alashworth / test-issue-import

0 stars 0 forks source link

allow access to propto template param as int in functions ending in _log / _lpdf / _lpmf #57

Open alashworth opened 5 years ago

alashworth commented 5 years ago

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 parameter propto, just like any of our built-in probability functions. For example,

 real foo_log(real x) {
    return x;
  }

generates the signature

template <bool propto, typename T0__>
inline
typename boost::math::tools::promote_args<T0__>::type
foo_log(const T0__& x, std::ostream* pstream__)
alashworth commented 5 years ago

Comment by syclik Monday Jul 06, 2015 at 21:54 GMT


This issue was moved to stan-dev/math#76

alashworth commented 5 years ago

Comment by syclik Tuesday Mar 29, 2016 at 16:56 GMT


This issue should have stayed in Stan and not moved to Math.