7 template <
unsigned int P>
8 inline int ipow(
int M){
return M*
ipow<P-1>(M);}
14 inline int ipow(
int a_base,
unsigned int a_exp)
19 if (a_exp & 1){result *= a_base;}
29 if (value == 0) {
return 1; }
30 else {
return value *
factorial(value - 1); }
41 #endif //end include guard int factorial(int value)
Definition: Proto_Math.H:27
int ipow< 0 >(int M)
Definition: Proto_Math.H:11
T taylor(int index)
Definition: Proto_Math.H:34
Definition: Proto_Array.H:17
uint64_t index
Definition: Proto_MBBoxPartition.H:15
int ipow(int M)
Template Based Integer Exponentiation.
Definition: Proto_Math.H:8