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

Method test_extreme

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

Source from the content-addressed store, hash-verified

2303 np.array([[np.nan, np.nan], [np.nan, np.nan]]))
2304
2305 def test_extreme(self):
2306 x = [[1e-100, 1e100], [1e100, 1e-100]]
2307 with np.errstate(all='raise'):
2308 c = corrcoef(x)
2309 assert_array_almost_equal(c, np.array([[1., -1.], [-1., 1.]]))
2310 assert_(np.all(np.abs(c) <= 1.0))
2311
2312 @pytest.mark.parametrize("test_type", [np.half, np.single, np.double, np.longdouble])
2313 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