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.
a1 (ArrayLike) – first input array to compare.
a2 (ArrayLike) – second input array to compare.
Boolean scalar array indicating whether the input arrays are element-wise equal after broadcasting.
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