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.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!
😔 What went wrong?