Is there any reason not to do just `r2[~nonzero_denominator & nonzero_numerator] = 0.0`