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

Method test_xy

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

Source from the content-addressed store, hash-verified

2603 assert_allclose(cov(x, aweights=np.ones(3)), res)
2604
2605 def test_xy(self):
2606 x = np.array([[1, 2, 3]])
2607 y = np.array([[1j, 2j, 3j]])
2608 assert_allclose(cov(x, y), np.array([[1., -1.j], [1.j, 1.]]))
2609
2610 def test_empty(self):
2611 with warnings.catch_warnings(record=True):

Callers

nothing calls this directly

Calls 2

assert_allcloseFunction · 0.90
covFunction · 0.90

Tested by

no test coverage detected