Mojo function
min
min(x: Int, y: Int, /) -> Int
Gets the minimum of two integers.
Args:
- βx (
Int
): Integer input to min. - βy (
Int
): Integer input to min.
Returns:
Minimum of x and y.
min(x: UInt, y: UInt, /) -> UInt
Gets the minimum of two integers.
Args:
- βx (
UInt
): Integer input to min. - βy (
UInt
): Integer input to min.
Returns:
Minimum of x and y.
min(x: SIMD[type, size], y: SIMD[type, size], /) -> SIMD[$0, $1]
Gets the elementwise minimum of x and y.
An element of the result SIMD vector will be the minimum of the corresponding elements in x and y.
Constraints:
The type of the inputs must be numeric.
Args:
- βx (
SIMD[type, size]
): First SIMD vector. - βy (
SIMD[type, size]
): Second SIMD vector.
Returns:
A SIMD vector containing the elementwise minimum of x and y.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!
π What went wrong?