mlx.core.isnan

Contents

mlx.core.isnan#

isnan(a: array, stream: None | Stream | Device = None) array#

Return a boolean array indicating which elements are NaN.

Parameters:

a (array) – Input array.

Returns:

The boolean array indicating which elements are NaN.

Return type:

array