def test_complex_nans(self): nan = blaze.nan for cnan in [complex(nan, 0), complex(0, nan), complex(nan, nan)]: arg1 = blaze.array([0, cnan, cnan]) arg2 = blaze.array([cnan, 0, cnan]) out = blaze.array([nan, nan, nan], dshape=datashape.complex_float64) assert_equal(blaze.maximum(arg1, arg2), out)
def test_float_nans(self): nan = blaze.nan arg1 = blaze.array([0, nan, nan]) arg2 = blaze.array([nan, 0, nan]) out = blaze.array([nan, nan, nan]) assert_equal(blaze.maximum(arg1, arg2), out)