PyTorch
API: torch.view_as_complex
Strategy: Direct Mapping
JAX (Core)
API: —
Strategy: Macro 'jax.lax.complex({x}[..., 0], {x}[..., 1])'
NumPy
API: —
Strategy: Macro '{x}.view(dtype=numpy.complex64)'
Keras
API: —
Strategy: Custom / Partial
TensorFlow
API: tf.complex
Strategy: Direct Mapping
Apple MLX
API: —
Strategy: Custom / Partial
Flax NNX
API: —
Strategy: Macro 'jax.lax.complex({x}[..., 0], {x}[..., 1])'
PaxML / Praxis
API: —
Strategy: Macro 'jax.lax.complex({x}[..., 0], {x}[..., 1])'