mlx.core.logical_and

Contents

mlx.core.logical_and#

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

Element-wise logical and.

Parameters:
  • a (array) – First input array or scalar.

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

Returns:

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

Return type:

array