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

Method test_float16_underflow

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

Source from the content-addressed store, hash-verified

2476 assert sinc(x).dtype == x.dtype
2477
2478 def test_float16_underflow(self):
2479 x = np.float16(0)
2480 # before gh-27784, fill value for 0 in input would underflow float16,
2481 # resulting in nan
2482 assert_array_equal(sinc(x), np.asarray(1.0))
2483
2484
2485class TestUnique:

Callers

nothing calls this directly

Calls 2

assert_array_equalFunction · 0.90
sincFunction · 0.90

Tested by

no test coverage detected