29 #ifndef SCIMATH_COMBINATORICS_H 30 #define SCIMATH_COMBINATORICS_H 34 #include <casacore/casa/aips.h> 35 #include <casacore/casa/Arrays/Vector.h> 36 #include <casacore/casa/OS/Mutex.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
this file contains all the compiler specific defines