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

Method test_complex

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

Source from the content-addressed store, hash-verified

2333 assert_allclose(cov(self.x1), self.res1)
2334
2335 def test_complex(self):
2336 x = np.array([[1, 2, 3], [1j, 2j, 3j]])
2337 res = np.array([[1., -1.j], [1.j, 1.]])
2338 assert_allclose(cov(x), res)
2339 assert_allclose(cov(x, aweights=np.ones(3)), res)
2340
2341 def test_xy(self):
2342 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