jax.numpy.log2

Warning

This page was created from a pull request (#9655).

jax.numpy.log2¶

jax.numpy.log2(x)[source]¶

Base-2 logarithm of x.

LAX-backend implementation of log2().

Original docstring below.

Parameters

x (array_like) – Input values.

Returns

y – Base-2 logarithm of x. This is a scalar if x is a scalar.

Return type

ndarray