mlx.core.log2#

mlx.core.log2(a: array, /, *, stream: Union[None, Stream, Device] = None) array#

Element-wise base-2 logarithm.

Parameters:

a (array) – Input array.

Returns:

The base-2 logarithm of a.

Return type:

array