Return a length-2 tensor [i_min, i_max] holding the indices (not values) of the minimum and maximum elements of 1-D tensor x.
[i_min, i_max]
x
solve(...)