def test_GreaterEqual2D_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_equal(np_a, np_b) dcr = dc.greater_equal(dc_a, dc_b) np.testing.assert_array_equal(npr.flatten(), np.array(dcr.data()))
def test_GreaterEqual1D(self): npr = np.greater_equal(self.np_a, self.np_b) dcr = dc.greater_equal(self.dc_a, self.dc_b) np.testing.assert_array_equal(npr, np.array(dcr.data()))