FuncSketch
Loading...
Searching...
No Matches
pow_number.h File Reference

Definition of pow_number function. More...

#include <cmath>
#include "func_sketch/common_types.h"
Include dependency graph for pow_number.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

template<typename Base, typename Exponent>
auto func_sketch::math::pow_number (Base base, Exponent exponent)
 Compute power for number types in this library.
template<typename Exponent>
auto func_sketch::math::pow_number (Integer base, Exponent exponent)
 Compute power for number types in this library.
template<typename Base>
auto func_sketch::math::pow_number (Base base, Integer exponent)
 Compute power for number types in this library.
auto func_sketch::math::pow_number (Integer base, Integer exponent)
 Compute power for number types in this library.

Detailed Description

Definition of pow_number function.

Definition in file pow_number.h.

Function Documentation

◆ pow_number() [1/4]

template<typename Base, typename Exponent>
auto func_sketch::math::pow_number ( Base base,
Exponent exponent )
inlinenodiscard

Compute power for number types in this library.

Template Parameters
BaseType of base.
ExponentType of exponent.
Parameters
[in]baseBase.
[in]exponentExponent.
Returns
Result.

Definition at line 38 of file pow_number.h.

◆ pow_number() [2/4]

template<typename Exponent>
auto func_sketch::math::pow_number ( Integer base,
Exponent exponent )
inlinenodiscard

Compute power for number types in this library.

Template Parameters
ExponentType of exponent.
Parameters
[in]baseBase.
[in]exponentExponent.
Returns
Result.

Definition at line 51 of file pow_number.h.

◆ pow_number() [3/4]

template<typename Base>
auto func_sketch::math::pow_number ( Base base,
Integer exponent )
inlinenodiscard

Compute power for number types in this library.

Template Parameters
BaseType of base.
Parameters
[in]baseBase.
[in]exponentExponent.
Returns
Result.

Definition at line 64 of file pow_number.h.

◆ pow_number() [4/4]

auto func_sketch::math::pow_number ( Integer base,
Integer exponent )
inline

Compute power for number types in this library.

Parameters
[in]baseBase.
[in]exponentExponent.
Returns
Result.

Definition at line 75 of file pow_number.h.