OpenWalnut
1.4.0
|
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 63 of file WCompileTimeFunctions.h.
anonymous enum |
Using an enum here instead of a static constant.
Definition at line 68 of file WCompileTimeFunctions.h.