A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.jax.dev/en/latest/_autosummary/jax.numpy.array_equiv.html below:

jax.numpy.array_equiv — JAX documentation

jax.numpy.array_equiv#
jax.numpy.array_equiv(a1, a2)[source]#

Check if two arrays are element-wise equal.

JAX implementation of numpy.array_equiv().

This function will return False if the input arrays cannot be broadcasted to the same shape.

Parameters:
  • a1 (ArrayLike) – first input array to compare.

  • a2 (ArrayLike) – second input array to compare.

Returns:

Boolean scalar array indicating whether the input arrays are element-wise equal after broadcasting.

Return type:

Array

Examples

>>> jnp.array_equiv(jnp.array([1, 2, 3]), jnp.array([1, 2, 3]))
Array(True, dtype=bool)
>>> jnp.array_equiv(jnp.array([1, 2, 3]), jnp.array([1, 2, 4]))
Array(False, dtype=bool)
>>> jnp.array_equiv(jnp.array([[1, 2, 3], [1, 2, 3]]),
...                 jnp.array([1, 2, 3]))
Array(True, dtype=bool)

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4