Template Function librapid::log2(VAL&&)#

Function Documentation#

template<class VAL>
auto librapid::log2(VAL &&val) -> detail::Function<typetraits::DescriptorType_t<VAL>, detail::Log2, VAL>#

Compute the base 2 logarithm of each element in the array.

\(R = \{ R_0, R_1, R_2, ... \} \) \text{ where } \(R_i = \log_{2}(A_i)\)

Template Parameters

VAL – Type of the input

Parameters

val – The input array or function

Returns

Base 2 logarithm function object