Skip to content

Function pow

function pow(const T1 &, const T2 &) math

template <numeric T1, numeric T2>
KFR_FUNCTION flt_type<std::common_type_t<T1, T2>> pow(const T1& x, const T2& y)

Returns x raised to the given power y.

For non-integer y the result is defined only for x >= 0. When x is negative and y is a non-integer the result is NaN.

Template parameters
T1 Type of the base x.
T2 Type of the exponent y.
Parameters
x Base value.
y Exponent.
Returns
x^y as flt_type<std::common_type_t<T1, T2>>.

Fully qualified name: kfr::pow(const T1 &, const T2 &)

Declared at math/log_exp.hpp:212

This file was generated by cxxdox, a C++ documentation generator based on MkDocs Material and libclang.