26namespace func_sketch::math {
37template <
typename Base,
typename Exponent>
38[[nodiscard]]
inline auto pow_number(Base base, Exponent exponent) {
39 return std::pow(base, exponent);
50template <
typename Exponent>
52 return std::pow(
static_cast<Real>(base), exponent);
63template <
typename Base>
65 return std::pow(base,
static_cast<Real>(exponent));
76 return std::pow(
static_cast<Real>(base),
static_cast<Real>(exponent));
Definitions of common types.
double Real
Type of real numbers in this project.
std::int32_t Integer
Type of integer numbers in this project.
auto pow_number(Base base, Exponent exponent)
Compute power for number types in this library.