MCPcopy Create free account
hub / github.com/RcppCore/Rcpp / lfactorial

Function lfactorial

inst/include/Rcpp/sugar/functions/math.h:56–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54 namespace internal{
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 ) ; }
57 }
58}
59VECTORIZED_MATH_1(factorial , ::Rcpp::internal::factorial )

Callers 2

runit_gammaFunction · 0.85
functions_REALSXPFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected