Mojo function
tuple_min
tuple_min(a: IntTuple[origin], b: IntTuple[origin]) -> IntTuple
Compute the element-wise minimum of two IntTuples.
This function compares corresponding elements of two IntTuples 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:
Returns:
IntTuple: 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!