Movatterモバイル変換


[0]ホーム

URL:


Skip to main content
Ctrl+K
JAX  documentation - Home

jax.numpy.logical_xor

Contents

jax.numpy.logical_xor#

jax.numpy.logical_xor=<jnp.ufunc'logical_xor'>#

Compute the logical XOR operation elementwise.

JAX implementation ofnumpy.logical_xor. 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 XOR.

Return type:

Any

Examples

>>>x=jnp.arange(4)>>>jnp.logical_xor(x,1)Array([ True, False, False, False], dtype=bool)
Contents

[8]ページ先頭

©2009-2025 Movatter.jp