aGrUM 3.0.0
a C++ library for (probabilistic) graphical models
pow_inl.h File Reference

Inline implementation of pow functions with integers, faster than stl implementation. More...

Include dependency graph for pow_inl.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  gum
 gum is the global namespace for all aGrUM entities

Functions

Integers Pow utility methods
unsigned long gum::intPow (unsigned long base, unsigned long exponent)
 Specialized pow function with integers (faster implementation).
uint64_t gum::int2Pow (uint64_t exponent)
 Specialized base 2 pow function with integer.
void gum::superiorPow (unsigned long card, unsigned long &num_bits, unsigned long &new_card)
 Compute the superior and closest power of two of an integer.

Detailed Description

Inline implementation of pow functions with integers, faster than stl implementation.

Author
Matthieu HOURBRACQ and Pierre-Henri WUILLEMIN(_at_LIP6)

Definition in file pow_inl.h.