예제 #1
0
 def test_Greater2D (self):
     np_a = np.reshape(self.np_a, (6,4))
     np_b = np.reshape(self.np_b, (6,4))
     dc_a = dc.reshape(self.dc_a, (6,4))
     dc_b = dc.reshape(self.dc_b, (6,4))
     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()))
예제 #2
0
 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()))