Stan Math Library  2.15.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  exponential_log(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>
48  inline
50  exponential_log(const T_y& y, const T_inv_scale& beta) {
51  return exponential_lpdf<T_y, T_inv_scale>(y, beta);
52  }
53 
54  }
55 }
56 #endif
boost::math::tools::promote_args< typename scalar_type< T1 >::type, typename scalar_type< T2 >::type, typename scalar_type< T3 >::type, typename scalar_type< T4 >::type, typename scalar_type< T5 >::type, typename scalar_type< T6 >::type >::type type
Definition: return_type.hpp:27
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–2016, Stan Development Team.