Name Edit

Log2 - returns the base-2 logarithm of scalars and vectors

Synopsis Edit

vector1 log2(vector1 a);
vector2 log2(vector2 a);
vector3 log2(vector3 a);
vector4 log2(vector4 a);

Parameters Edit

Vector or scalar of which to determine the base-2 logarithm.

Description Edit

Returns the base-2 logarithm a.

For vectors, the returned vector contains the base-2 logarithm of each element of the input vector.