mlx.core.logical_not

Contents

mlx.core.logical_not#

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

Element-wise logical not.

Parameters:

a (array) – Input array or scalar.

Returns:

The boolean array containing the logical not of a.

Return type:

array