Mojo function
tuple_min
tuple_min(a: IntTuple[origin], b: IntTuple[origin]) -> IntTuple
Compute the element-wise minimum of two IntTuple
s.
This function compares corresponding elements of two IntTuple
s and
returns a new IntTuple
containing the minimum value at each position.
Aborts: If the input tuples have different lengths.
Note:
If either input contains UNKNOWN_VALUE
, the result will be UNKNOWN_VALUE
.
Args:
- a (
IntTuple[origin]
): FirstIntTuple
. - b (
IntTuple[origin]
): SecondIntTuple
.
Returns:
A new IntTuple
with each element being the minimum of the corresponding
elements in a and b.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!