mlx.core.logical_not#

mlx.core.logical_not(a: array, /, *, stream: Union[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