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

Method test_complex

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

Source from the content-addressed store, hash-verified

2597 assert_allclose(cov(self.x1), self.res1)
2598
2599 def test_complex(self):
2600 x = np.array([[1, 2, 3], [1j, 2j, 3j]])
2601 res = np.array([[1., -1.j], [1.j, 1.]])
2602 assert_allclose(cov(x), res)
2603 assert_allclose(cov(x, aweights=np.ones(3)), res)
2604
2605 def test_xy(self):
2606 x = np.array([[1, 2, 3]])

Callers

nothing calls this directly

Calls 2

assert_allcloseFunction · 0.90
covFunction · 0.90

Tested by

no test coverage detected