All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Macros Groups
falling_factorial.hpp
Go to the documentation of this file.
#ifndef STAN_MATH_PRIM_SCAL_FUN_FALLING_FACTORIAL_HPP
#define STAN_MATH_PRIM_SCAL_FUN_FALLING_FACTORIAL_HPP
#include <stan/math/prim/scal/fun/log_falling_factorial.hpp>
#include <cmath>
namespace stan {
namespace math {
template<typename T1, typename T2>
inline typename boost::math::tools::promote_args<T1, T2>::type
falling_factorial(const T1 x, const T2 n) {
using std::exp;
return exp(log_falling_factorial(x, n));
}
}
}
#endif
stan::math::log_falling_factorial
fvar< T > log_falling_factorial(const fvar< T > &x, const fvar< T > &n)
Definition: log_falling_factorial.hpp:15
stan::math::exp
fvar< T > exp(const fvar< T > &x)
Definition: exp.hpp:10
stan::math::falling_factorial
fvar< T > falling_factorial(const fvar< T > &x, const fvar< T > &n)
Definition: falling_factorial.hpp:15
log_falling_factorial.hpp

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