KASKADE 7 development version
Loading...
Searching...
No Matches
power.hh File Reference
#include <cassert>

Go to the source code of this file.

Namespaces

namespace  Kaskade
 

Functions

template<class R>
constexpr R Kaskade::power (R base, int exp)
 Computes integral powers of values in a multiplicative half-group.
template<class R>
constexpr R Kaskade::square (R x)
 returns the square of its argument.
template<class R>
constexpr R Kaskade::faculty (int n)
 Computes faculties. Is this somewhere in the standard? no.
constexpr int Kaskade::sqrti (int n)
 Computes floor(sqrt(n)) for integers n at compile time.