mlx.core.logical_and

目录

mlx.core.logical_and#

logical_and(a: array, b: array, /, *, stream: None | Stream | Device = None) array#

Element-wise logical and.

参数:
  • a (array) -- First input array or scalar.

  • b (array) -- Second input array or scalar.

返回:

The boolean array containing the logical and of a and b.

返回类型:

array