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

Method test_extreme

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

Source from the content-addressed store, hash-verified

2567 np.array([[np.nan, np.nan], [np.nan, np.nan]]))
2568
2569 def test_extreme(self):
2570 x = [[1e-100, 1e100], [1e100, 1e-100]]
2571 with np.errstate(all='raise'):
2572 c = corrcoef(x)
2573 assert_array_almost_equal(c, np.array([[1., -1.], [-1., 1.]]))
2574 assert_(np.all(np.abs(c) <= 1.0))
2575
2576 @pytest.mark.parametrize("test_type", np_floats)
2577 def test_corrcoef_dtype(self, test_type):

Callers

nothing calls this directly

Calls 4

corrcoefFunction · 0.90
assert_Function · 0.90
allMethod · 0.45

Tested by

no test coverage detected