Skip to main content

Mojo function

isnan

isnan[type: DType, simd_width: Int](val: SIMD[type, simd_width]) -> SIMD[bool, $1]

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

Parameters:

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

Args:

  • val (SIMD[type, simd_width]): The value to check.

Returns:

True if val is NaN and False otherwise.