Skip to main content

Mojo function

isfinite

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

Checks if the value is not infinite.

This is always True for non-FP data types.

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 finite and False otherwise.