Stan Math Library  2.20.0
reverse mode automatic differentiation
exponential_log.hpp
Go to the documentation of this file.
1 #ifndef STAN_MATH_PRIM_SCAL_PROB_EXPONENTIAL_LOG_HPP
2 #define STAN_MATH_PRIM_SCAL_PROB_EXPONENTIAL_LOG_HPP
3 
6 
7 namespace stan {
8 namespace math {
9 
38 template <bool propto, typename T_y, typename T_inv_scale>
40  const T_y& y, const T_inv_scale& beta) {
41  return exponential_lpdf<propto, T_y, T_inv_scale>(y, beta);
42 }
43 
47 template <typename T_y, typename T_inv_scale>
49  const T_y& y, const T_inv_scale& beta) {
50  return exponential_lpdf<T_y, T_inv_scale>(y, beta);
51 }
52 
53 } // namespace math
54 } // namespace stan
55 #endif
fvar< T > beta(const fvar< T > &x1, const fvar< T > &x2)
Return fvar with the beta function applied to the specified arguments and its gradient.
Definition: beta.hpp:51
boost::math::tools::promote_args< double, typename scalar_type< T >::type, typename return_type< Types_pack... >::type >::type type
Definition: return_type.hpp:36
return_type< T_y, T_inv_scale >::type exponential_log(const T_y &y, const T_inv_scale &beta)
The log of an exponential density for y with the specified inverse scale parameter.

     [ Stan Home Page ] © 2011–2018, Stan Development Team.