Ejemplo n.º 1
0
 def test_true_divide_float(self):
     r = biggus.true_divide(np.arange(3.), 2.)
     assert_array_equal(r.ndarray(), [0., 0.5, 1.])
Ejemplo n.º 2
0
 def test_true_divide_float(self):
     r = biggus.true_divide(np.arange(3.), 2.)
     assert_array_equal(r.ndarray(), [0., 0.5, 1.])
Ejemplo n.º 3
0
 def test_other_array(self):
     a = FakeArray([2, 4])
     b = FakeArray([2, 4])
     r = a / b
     self.assertIsInstance(r, biggus._Elementwise)
     self.assertElementwise(r, biggus.true_divide(a, b))
Ejemplo n.º 4
0
 def test_other_array(self):
     a = FakeArray([2, 4])
     b = FakeArray([2, 4])
     r = a / b
     self.assertIsInstance(r, biggus._Elementwise)
     self.assertElementwise(r, biggus.true_divide(a, b))