dpnp.tensor.isnan

dpnp.tensor.isnan

Test if each element of an input array is a NaN.

Parameters:
  • x (usm_ndarray) -- Input array. May have any data type.

  • out ({None, usm_ndarray}, optional) --

    Output array to populate. Array must have the correct shape and the expected data type.

    Default: None.

  • order ({"C", "F", "A", "K"}, optional) --

    Memory layout of the new output array, if parameter out is None.

    Default: "K".

Returns:

out -- An array which is True where x is NaN, False otherwise. The data type of the returned array is bool.

Return type:

usm_ndarray