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

Function assert_hypot_isinf

numpy/core/tests/test_umath.py:2121–2124  ·  view source on GitHub ↗
(x, y)

Source from the content-addressed store, hash-verified

2119
2120
2121def assert_hypot_isinf(x, y):
2122 with np.errstate(invalid='ignore'):
2123 assert_(np.isinf(ncu.hypot(x, y)),
2124 "hypot(%s, %s) is %s, not inf" % (x, y, ncu.hypot(x, y)))
2125
2126
2127class TestHypotSpecialValues:

Callers 1

test_nan_outputs2Method · 0.85

Calls 1

assert_Function · 0.90

Tested by

no test coverage detected