LdExpΒΆ

Returns x1 * 2**x2, element-wise.

Abstract Signature:

LdExp(x1: Tensor, x2: Tensor)

PyTorch

API: torch.ldexp
Strategy: Direct Mapping

JAX (Core)

API: jax.numpy.ldexp
Strategy: Direct Mapping

NumPy

API: numpy.ldexp
Strategy: Direct Mapping

Keras

API: keras.ops.numpy.ldexp
Strategy: Direct Mapping

TensorFlow

API: β€”
Strategy: Macro '{x1} * tf.math.pow(2.0, {x2})'

Apple MLX

API: β€”
Strategy: Macro '{x1} * mx.power(2.0, {x2})'

Flax NNX

API: jax.numpy.ldexp
Strategy: Direct Mapping

PaxML / Praxis

API: jax.numpy.ldexp
Strategy: Direct Mapping