MCPcopy Index your code
hub / github.com/numpy/numpy / test_wrong_ddof

Method test_wrong_ddof

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

Source from the content-addressed store, hash-verified

2617 np.array([[np.nan, np.nan], [np.nan, np.nan]]))
2618
2619 def test_wrong_ddof(self):
2620 with warnings.catch_warnings(record=True):
2621 warnings.simplefilter('always', RuntimeWarning)
2622 assert_array_equal(cov(self.x1, ddof=5),
2623 np.array([[np.inf, -np.inf],
2624 [-np.inf, np.inf]]))
2625
2626 def test_1D_rowvar(self):
2627 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