1 #ifndef STAN_MATH_PRIM_SCAL_FUN_BETA_HPP 2 #define STAN_MATH_PRIM_SCAL_FUN_BETA_HPP 5 #include <boost/math/tools/promotion.hpp> 50 template <
typename T1,
typename T2>
51 inline typename boost::math::tools::promote_args<T1, T2>::type
beta(
52 const T1 a,
const T2 b) {
fvar< T > lgamma(const fvar< T > &x)
Return the natural logarithm of the gamma function applied to the specified argument.
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.
fvar< T > exp(const fvar< T > &x)