Movatterモバイル変換


[0]ホーム

URL:


Skip to main content
Ctrl+K
JAX  documentation - Home

jax.numpy.logical_and

Contents

jax.numpy.logical_and#

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

Compute the logical AND operation elementwise.

JAX implementation ofnumpy.logical_and. 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 AND.

Return type:

Any

Examples

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

[8]ページ先頭

©2009-2025 Movatter.jp