MIRA
|
Functions for computing powers with constant integral exponent or constant integral exponent and base. More...
#include <cmath>
Go to the source code of this file.
Classes | |
struct | PowerComputer< T, N > |
struct | PowerComputer< T, 1 > |
struct | PowerComputer< T, 0 > |
struct | TPower< base, exponent > |
Computes the power base^exponent at compile time. More... | |
struct | TPower< base, 0 > |
Namespaces | |
mira | |
specialize cv::DataType for our ImgPixel and inherit from cv::DataType<Vec> | |
mira::detail | |
Functions | |
template<int exponent, typename T > | |
T | pow (T base) |
Computes the power of 'base' with a constant integral exponent. More... | |
template<typename T > | |
T | pow2 (T base) |
Computes base^2. More... | |
template<typename T > | |
T | pow3 (T base) |
Computes base^3. More... | |
template<typename T , typename U > | |
T | pow (T base, U exponent) |
template<typename T > | |
T | pow (T base, T exponent) |
Functions for computing powers with constant integral exponent or constant integral exponent and base.