Template Function librapid::log(T)#

Function Documentation#

template<typename T, typename std::enable_if_t<std::is_fundamental_v<T>, int> = 0>
constexpr auto librapid::log(T val)#

Return the natural logarithm of a given value. Note that, for integer values, this function will cast the input value to a floating point type before calculating the logarithm.

Template Parameters

T – Data type

Parameters

val – Input value

Returns

Natural logarithm of the input value