Template Function TRAP::Math::Log2(Vec<L, T>)#

Function Documentation#

template<u32 L, typename T>
constexpr Vec<L, T> TRAP::Math::Log2(Vec<L, T> x)#

Retrieve the base 2 logarithm of the parameter.

Log2 function is defined for input values of x defined in the range (0, inf+) in the limit of the type qualifier.

Parameters:

x – Specify the value of which to take the base 2 logarithm.

Returns:

Base 2 log of x, i.e., returns the value y, which satisfies the equation x = 2^y.