MCPcopy Create free account
hub / github.com/numpy/numpy / test_wrong_ddof

Method test_wrong_ddof

numpy/lib/tests/test_function_base.py:2355–2360  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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):
2357 warnings.simplefilter('always', RuntimeWarning)
2358 assert_array_equal(cov(self.x1, ddof=5),
2359 np.array([[np.inf, -np.inf],
2360 [-np.inf, np.inf]]))
2361
2362 def test_1D_rowvar(self):
2363 assert_allclose(cov(self.x3), cov(self.x3, rowvar=False))

Callers

nothing calls this directly

Calls 2

assert_array_equalFunction · 0.90
covFunction · 0.90

Tested by

no test coverage detected