jax.numpy.logical_or#
- jax.numpy.logical_or = <jnp.ufunc 'logical_or'>#
Compute the logical OR operation elementwise.
JAX implementation of
numpy.logical_or
. This is a universal function, and supports the additional APIs described atjax.numpy.ufunc
.- Parameters:
x – input arrays. Must be broadcastable to a common shape.
y – input arrays. Must be broadcastable to a common shape.
args (ArrayLike)
out (None)
where (None)
- Returns:
Array containing the result of the element-wise logical OR.
- Return type:
Any
Examples
>>> x = jnp.arange(4) >>> jnp.logical_or(x, 1) Array([ True, True, True, True], dtype=bool)