test_half

Module Contents

assert_raises_fpe(strmatch, callable, *args, **kwargs)
class TestHalf

Bases:numpy.testing.TestCase

setUp(self)
test_half_conversions(self)

Checks that all 16-bit values survive conversion to/from 32-bit and 64-bit float

test_nans_infs(self)
test_half_values(self)

Confirms a small number of known half values

test_half_rounding(self)

Checks that rounding when converting to half is correct

test_half_correctness(self)

Take every finite float16, and check the casting functions with a manual conversion.

test_half_ordering(self)

Make sure comparisons are working right

test_half_funcs(self)

Test the various ArrFuncs

test_spacing_nextafter(self)

Test np.spacing and np.nextafter

test_half_ufuncs(self)

Test the various ufuncs

test_half_coercion(self)

Test that half gets coerced properly with the other types

test_half_fpe(self)
test_half_array_interface(self)

Test that half is compatible with __array_interface__