(self)
| 2344 | assert_allclose(cov(x, y), np.array([[1., -1.j], [1.j, 1.]])) |
| 2345 | |
| 2346 | def test_empty(self): |
| 2347 | with warnings.catch_warnings(record=True): |
| 2348 | warnings.simplefilter('always', RuntimeWarning) |
| 2349 | assert_array_equal(cov(np.array([])), np.nan) |
| 2350 | assert_array_equal(cov(np.array([]).reshape(0, 2)), |
| 2351 | np.array([]).reshape(0, 0)) |
| 2352 | assert_array_equal(cov(np.array([]).reshape(2, 0)), |
| 2353 | np.array([[np.nan, np.nan], [np.nan, np.nan]])) |
| 2354 | |
| 2355 | def test_wrong_ddof(self): |
| 2356 | with warnings.catch_warnings(record=True): |
nothing calls this directly
no test coverage detected