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

Method test_complex

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

Source from the content-addressed store, hash-verified

2546 assert_(np.all(np.abs(tgt2) <= 1.0))
2547
2548 def test_complex(self):
2549 x = np.array([[1, 2, 3], [1j, 2j, 3j]])
2550 res = corrcoef(x)
2551 tgt = np.array([[1., -1.j], [1.j, 1.]])
2552 assert_allclose(res, tgt)
2553 assert_(np.all(np.abs(res) <= 1.0))
2554
2555 def test_xy(self):
2556 x = np.array([[1, 2, 3]])

Callers

nothing calls this directly

Calls 4

corrcoefFunction · 0.90
assert_allcloseFunction · 0.90
assert_Function · 0.90
allMethod · 0.45

Tested by

no test coverage detected