MatrixTransposeΒΆ

Transposes a matrix (or a stack of matrices) swapping the last two dimensions.

Abstract Signature:

MatrixTranspose(x: Tensor)

PyTorch

API: torch.linalg.matrix_transpose
Strategy: Direct Mapping

JAX (Core)

API: jax.numpy.matrix_transpose
Strategy: Direct Mapping

NumPy

API: numpy.matrix_transpose
Strategy: Direct Mapping

Keras

API: keras.ops.transpose
Strategy: Direct Mapping

TensorFlow

API: tf.linalg.matrix_transpose
Strategy: Direct Mapping

Apple MLX

API: mlx.core.transpose
Strategy: Direct Mapping

Flax NNX

API: jax.numpy.matrix_transpose
Strategy: Direct Mapping

PaxML / Praxis

API: jax.numpy.matrix_transpose
Strategy: Direct Mapping