Skip to main content

function

less

less[type: DType, simd_width: Int](x: SIMD[type, simd_width], y: SIMD[type, simd_width]) -> SIMD[bool, $1]

Performs elementwise check of whether values in x are less than values in y.

An element of the result SIMD vector will be True if the corresponding element in x is less than the corresponding element in y, and False otherwise.

Parameters:

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

Args:

  • x (SIMD[type, simd_width]): First SIMD vector to compare.
  • y (SIMD[type, simd_width]): Second SIMD vector to compare.

Returns:

A SIMD vector containing True if the corresponding element in x is less than the corresponding element in y, otherwise False.