Skip to main content

Mojo function

min

min(val: SIMD[dtype, size]) -> Scalar[dtype]

Computes the minimum value across all lanes in a warp.

This is a convenience wrapper around lane_group_min that operates on the entire warp. It performs a parallel reduction using warp shuffle operations to find the global minimum value across all lanes in the warp.

Args:

  • val (SIMD): The SIMD value to reduce. Each lane contributes its value to find the minimum.

Returns:

Scalar: The scalar minimum value across all lanes in the warp.

Was this page helpful?