def test_Greater2D_3(self): np_a = np.reshape(self.np_a, (12, 2)) np_b = np.reshape(self.np_b, (12, 2)) dc_a = dc.reshape(self.dc_a, (12, 2)) dc_b = dc.reshape(self.dc_b, (12, 2)) npr = np.greater(np_a, np_b) dcr = dc.greater(dc_a, dc_b) np.testing.assert_array_equal(npr.flatten(), np.array(dcr.data()))
def test_Greater1D(self): npr = np.greater(self.np_a, self.np_b) dcr = dc.greater(self.dc_a, self.dc_b) np.testing.assert_array_equal(npr, np.array(dcr.data()))