ENH: vectorize boolean comparisons of floats

the new code will more often propagate the invalid floating point
exception if comparing against nan.