rmax and rmin were named that way to differentiate them from element-wise min/max. We should instead have one type and differentiate by overloads.