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