Skip to main content
Log in

Mojo function

min

min[val_type: DType, simd_width: Int, //](val: SIMD[val_type, simd_width]) -> SIMD[val_type, simd_width]

Computes the minimum value across the warp.

Parameters:

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

Args:

  • val (SIMD[val_type, simd_width]): The SIMD value to reduce.

Returns:

A SIMD value with the minimum value in all lanes.