aGrUM  0.16.0
pow.h
Go to the documentation of this file.
1 
30 #ifndef GUM_MATH_POW_H
31 #define GUM_MATH_POW_H
32 
33 #include <agrum/agrum.h>
34 
35 namespace gum {
36 
39 
49  unsigned long intPow(unsigned long base, unsigned long exponent);
50 
58  unsigned long int2Pow(unsigned long exponent);
59 
75  void superiorPow(unsigned long card,
76  unsigned long& num_bits,
77  unsigned long& new_card);
78 
80 
81 } // namespace gum
82 
83 #ifndef GUM_NO_INLINE
84 # include <agrum/core/math/pow_inl.h>
85 #endif // GUM_NO_INLINE
86 
87 #endif // GUM_MATH_POW_H
unsigned long int2Pow(unsigned long exponent)
Specialized base 2 pow function with integer.
Definition: pow_inl.h:49
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Definition: agrum.h:25
void superiorPow(unsigned long card, unsigned long &num_bits, unsigned long &new_card)
Compute the superior and closest power of two of an integer.
Definition: pow_inl.h:55
unsigned long intPow(unsigned long base, unsigned long exponent)
Specialized pow function with integers (faster implementation).
Definition: pow_inl.h:36