Skip to main content
Log in

Mojo function

isinf

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

Checks if the value is infinite.

This is always False 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 infinite and False otherwise.

Was this page helpful?