class documentation
class TestHalf: (source)
Undocumented
Method | setup |
Undocumented |
Method | test |
Test that half is compatible with __array_interface__ |
Method | test |
Test that half gets coerced properly with the other types |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Checks that all 16-bit values survive conversion to/from 32-bit and 64-bit float |
Method | test |
Take every finite float16, and check the casting functions with a manual conversion. |
Method | test |
Undocumented |
Method | test |
Test the various ArrFuncs |
Method | test |
Make sure comparisons are working right |
Method | test |
Checks that rounding when converting to half is correct |
Method | test |
Test the various ufuncs |
Method | test |
Confirms a small number of known half values |
Method | test |
Undocumented |
Method | test |
Test np.spacing and np.nextafter |
Instance Variable | all |
Undocumented |
Instance Variable | all |
Undocumented |
Instance Variable | all |
Undocumented |
Instance Variable | finite |
Undocumented |
Instance Variable | finite |
Undocumented |
Instance Variable | finite |
Undocumented |
Instance Variable | nonan |
Undocumented |
Instance Variable | nonan |
Undocumented |
Instance Variable | nonan |
Undocumented |
@pytest.mark.parametrize( [ 'float_t', 'uint_t', 'bits'], [ ( np.float32, np.uint32, 23), ( np.float64, np.uint64, 52)])
def test_half_conversion_denormal_round_even(self, float_t, uint_t, bits): (source) ¶
def test_half_conversion_denormal_round_even(self, float_t, uint_t, bits): (source) ¶
Undocumented
@pytest.mark.parametrize( 'string_dt', [ 'S', 'U'])
def test_half_conversion_from_string(self, string_dt): (source) ¶
def test_half_conversion_from_string(self, string_dt): (source) ¶
Undocumented
@pytest.mark.parametrize( 'offset', [ None, 'up', 'down'])
@pytest.mark.parametrize( 'shift', [ None, 'up', 'down'])
@pytest.mark.parametrize( 'float_t', [ np.float32, np.float64])
@np._no_nep50_warning()
def test_half_conversion_rounding(self, float_t, shift, offset): (source) ¶
@pytest.mark.parametrize(
@pytest.mark.parametrize(
@np._no_nep50_warning()
def test_half_conversion_rounding(self, float_t, shift, offset): (source) ¶
Undocumented
@pytest.mark.parametrize( 'string_dt', [ 'S', 'U'])
def test_half_conversion_to_string(self, string_dt): (source) ¶
def test_half_conversion_to_string(self, string_dt): (source) ¶
Undocumented