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

Method test_simple

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

Source from the content-addressed store, hash-verified

2537 [[1., -1.], [-1., 1.]])
2538
2539 def test_simple(self):
2540 tgt1 = corrcoef(self.A)
2541 assert_almost_equal(tgt1, self.res1)
2542 assert_(np.all(np.abs(tgt1) <= 1.0))
2543
2544 tgt2 = corrcoef(self.A, self.B)
2545 assert_almost_equal(tgt2, self.res2)
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]])

Callers

nothing calls this directly

Calls 4

corrcoefFunction · 0.90
assert_almost_equalFunction · 0.90
assert_Function · 0.90
allMethod · 0.45

Tested by

no test coverage detected