aGrUM 2.3.2
a C++ library for (probabilistic) graphical models
pow.h File Reference

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

Include dependency graph for pow.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).
unsigned long gum::int2Pow (unsigned long 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

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

Author
Matthieu HOURBRACQ and Pierre-Henri WUILLEMIN(_at_LIP6)

Definition in file pow.h.