ViewAsRealΒΆ

Views a complex tensor as a real tensor.

Abstract Signature:

ViewAsReal(x: Tensor)

PyTorch

API: torch.view_as_real
Strategy: Direct Mapping

JAX (Core)

API: β€”
Strategy: Macro 'jax.numpy.stack([jax.numpy.real({x}), jax.numpy.imag({x})], axis=-1)'

NumPy

API: β€”
Strategy: Macro 'numpy.stack([numpy.real({x}), numpy.imag({x})], axis=-1)'

Keras

API: β€”
Strategy: Custom / Partial

TensorFlow

API: tf.math.real
Strategy: Macro 'tf.stack([tf.math.real({x}), tf.math.imag({x})], axis=-1)'

Apple MLX

API: β€”
Strategy: Custom / Partial

Flax NNX

API: β€”
Strategy: Macro 'jax.numpy.stack([jax.numpy.real({x}), jax.numpy.imag({x})], axis=-1)'

PaxML / Praxis

API: β€”
Strategy: Macro 'jax.numpy.stack([jax.numpy.real({x}), jax.numpy.imag({x})], axis=-1)'