Пример #1
0
 def test_masked_binary_operations2(self):
     # Tests domained_masked_binary_operation
     (x, mx) = self.data
     xmx = masked_array(mx.data.__array__(), mask=mx.mask)
     self.assertTrue(isinstance(divide(mx, mx), mmatrix))
     self.assertTrue(isinstance(divide(mx, x), mmatrix))
     assert_equal(divide(mx, mx), divide(xmx, xmx))
Пример #2
0
 def test_masked_binary_operations2(self):
     # Tests domained_masked_binary_operation
     (x, mx) = self.data
     xmx = masked_array(mx.data.__array__(), mask=mx.mask)
     assert_(isinstance(divide(mx, mx), MMatrix))
     assert_(isinstance(divide(mx, x), MMatrix))
     assert_equal(divide(mx, mx), divide(xmx, xmx))