22 #ifndef RCPP_SUGAR_MATH_H
23 #define RCPP_SUGAR_MATH_H
55 extern "C" inline double factorial(
double x ){ return ::Rf_gammafn( x + 1.0 ) ; }
56 extern "C" inline double lfactorial(
double x ){ return ::Rf_lgammafn( x + 1.0 ) ; }
#define SUGAR_BLOCK_2(__NAME__, __SYMBOL__)
VECTORIZED_MATH_1(trunc, ::Rf_ftrunc) SUGAR_BLOCK_2(round
double trigamma(double x)
double lbeta(double a, double b)
double tetragamma(double x)
double lchoose(double n, double k)
double choose(double n, double k)
double beta(double a, double b)
double psigamma(double x, double deriv)
double pentagamma(double x)
void exp(InputIterator begin, InputIterator end, OutputIterator out)
void log(InputIterator begin, InputIterator end, OutputIterator out)
void sqrt(InputIterator begin, InputIterator end, OutputIterator out)
double lfactorial(double x)
double factorial(double x)