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

Function factorial

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

Source from the content-addressed store, hash-verified

53namespace Rcpp{
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}

Callers 2

runit_gammaFunction · 0.85
functions_REALSXPFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected