예제 #1
0
 def test_out(self, array):
     x = array(self.x)
     x_dtype = x.dtype
     result = isnan(x, out=x)
     self.assertIs(result, x)
     self.assertEqual(x_dtype, result.dtype)
예제 #2
0
 def test_functionality(self, array):
     expected = np.isnan(self.x)
     result = isnan(array(self.x))
     np.testing.assert_equal(assure_array_dense(result), expected)