PolarΒΆ

Constructs a complex tensor from polar coordinates.

Abstract Signature:

Polar(abs: Tensor, angle: Tensor)

PyTorch

API: torch.polar
Strategy: Direct Mapping

JAX (Core)

API: β€”
Strategy: Macro '{abs} * jax.numpy.exp(1j * {angle})'

NumPy

API: β€”
Strategy: Macro '{abs} * numpy.exp(1j * {angle})'

Keras

API: keras.ops.polar
Strategy: Direct Mapping

TensorFlow

API: tf.complex
Strategy: Macro 'tf.complex({abs} * tf.math.cos({angle}), {abs} * tf.math.sin({angle}))'

Apple MLX

API: β€”
Strategy: Macro '{abs} * mlx.core.exp(1j * {angle})'

Flax NNX

API: β€”
Strategy: Macro '{abs} * jax.numpy.exp(1j * {angle})'

PaxML / Praxis

API: β€”
Strategy: Macro '{abs} * jax.numpy.exp(1j * {angle})'