Skip to main content

Mojo function

isnan

isnan[dtype: DType, width: Int, //](val: SIMD[dtype, width]) -> SIMD[bool, width]

Checks if the value is Not a Number (NaN).

Parameters:

  • dtype (DType): The value dtype.
  • width (Int): The width of the SIMD vector.

Args:

  • val (SIMD[dtype, width]): The value to check.

Returns:

True if val is NaN and False otherwise.

Was this page helpful?