OpenWalnut
1.5.0dev
|
Implements compile-time calculation of binomial coefficients. More...
#include <WCompileTimeFunctions.h>
Public Types | |
enum | { value = WBinom< n - 1, k - 1 >::value + WBinom< n - 1, k >::value } |
Using an enum here instead of a static constant. More... | |
Implements compile-time calculation of binomial coefficients.
WBinom< n, k >::value = n! / ( k!(n-k)! ).
Definition at line 65 of file WCompileTimeFunctions.h.
anonymous enum |
Using an enum here instead of a static constant.
Enumerator | |
---|---|
value | The computed value. |
Definition at line 70 of file WCompileTimeFunctions.h.