GcdΒΆ

Computes the element-wise greatest common divisor (GCD).

Abstract Signature:

Gcd(input: Tensor, other: Tensor)

PyTorch

API: torch.gcd
Strategy: Direct Mapping

JAX (Core)

API: jnp.gcd
Strategy: Direct Mapping

NumPy

API: np.gcd
Strategy: Direct Mapping

Keras

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

TensorFlow

API: tf.math.gcd
Strategy: Direct Mapping

Apple MLX

API: β€”
Strategy: Custom / Partial

Flax NNX

API: jnp.gcd
Strategy: Direct Mapping

PaxML / Praxis

API: jnp.gcd
Strategy: Direct Mapping