Exponential/Logarithm and other functions¶
cbrt
function¶
template <typename T1, KFR_ENABLE_IF(is_numeric<T1>)>
flt_type<T1> cbrt(const T1 &x)
Returns the cube root of the x.
exp
function¶
template <typename T1, KFR_ENABLE_IF(is_numeric<T1>)>
flt_type<T1> exp(const T1 &x)
Returns e raised to the given power x.
exp10
function¶
template <typename T1, KFR_ENABLE_IF(is_numeric<T1>)>
flt_type<T1> exp10(const T1 &x)
Returns 10 raised to the given power x.
exp2
function¶
template <typename T1, KFR_ENABLE_IF(is_numeric<T1>)>
flt_type<T1> exp2(const T1 &x)
Returns 2 raised to the given power x.
exp_fmadd
function¶
template <typename T1, typename T2, typename T3,
KFR_ENABLE_IF(is_numeric_args<T1, T2, T3>)>
flt_type<std::common_type_t<T1, T2, T3>>
exp_fmadd(const T1 &x, const T2 &y, const T3 &z)
Returns exp(x * m + a).
log
function¶
template <typename T1, KFR_ENABLE_IF(is_numeric<T1>)>
flt_type<T1> log(const T1 &x)
Returns the natural logarithm of the x.
log10
function¶
template <typename T1, KFR_ENABLE_IF(is_numeric<T1>)>
flt_type<T1> log10(const T1 &x)
Returns the common (base-10) logarithm of the x.
log2
function¶
template <typename T1, KFR_ENABLE_IF(is_numeric<T1>)>
flt_type<T1> log2(const T1 &x)
Returns the binary (base-2) logarithm of the x.
log_fmadd
function¶
template <typename T1, typename T2, typename T3,
KFR_ENABLE_IF(is_numeric_args<T1, T2, T3>)>
flt_type<std::common_type_t<T1, T2, T3>>
log_fmadd(const T1 &x, const T2 &y, const T3 &z)
Returns log(x) * m + a.
logb
function¶
template <typename T1, KFR_ENABLE_IF(is_numeric<T1>)>
flt_type<T1> logb(const T1 &x)
Returns the rounded binary (base-2) logarithm of the x.
logm
function¶
template <typename T1, typename T2,
KFR_ENABLE_IF(is_numeric_args<T1, T2>)>
flt_type<std::common_type_t<T1, T2>> logm(const T1 &x,
const T2 &y)
Returns log(x) * y.
logn
function¶
template <typename T1, typename T2,
KFR_ENABLE_IF(is_numeric_args<T1, T2>)>
flt_type<std::common_type_t<T1, T2>> logn(const T1 &x,
const T2 &y)
Returns the logarithm of the x with base y.
pow
function¶
template <typename T1, typename T2,
KFR_ENABLE_IF(is_numeric_args<T1, T2>)>
flt_type<std::common_type_t<T1, T2>> pow(const T1 &x,
const T2 &y)
Returns the x raised to the given power y.
root
function¶
template <typename T1, typename T2,
KFR_ENABLE_IF(is_numeric_args<T1, T2>)>
flt_type<std::common_type_t<T1, T2>> root(const T1 &x,
const T2 &y)
Returns the real nth root of the x.
Auto-generated from sources, Revision 6aea976a464de59d522d0c629e64bf0c044e6777, https://github.com/kfrlib/kfr/blob/6aea976a464de59d522d0c629e64bf0c044e6777/include/kfr/