jax.numpy.exp2

Contents

jax.numpy.exp2#

jax.numpy.exp2(x, /)[source]#

Calculate 2**p for all p in the input array.

LAX-backend implementation of numpy.exp2().

Original docstring below.

Parameters:

x (array_like) – Input values.

Returns:

out – Element-wise 2 to the power x. This is a scalar if x is a scalar.

Return type:

ndarray or scalar