29 #ifndef SCIMATH_COMBINATORICS_H
30 #define SCIMATH_COMBINATORICS_H
Combinatorics related functions.
static uInt choose(const uInt n, const uInt k)
"n choose k" = n!/(k!(n-k)!) Exception is thrown if k > n.
static void fillCache(const uInt n)
Wrapper around a pthreads mutex.
static uInt factorial(const uInt n)
Get n!
static volatile uInt _factorialCacheSize
static Vector< uInt > _factorialCache
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.