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

Method _create_arrays_finite

numpy/_core/tests/test_half.py:42–47  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

40 return nonan_f16, nonan_f32, nonan_f64
41
42 def _create_arrays_finite(self):
43 nonan_f16, nonan_f32, nonan_f64 = self._create_arrays_nonan()
44 finite_f16 = nonan_f16[1:-1]
45 finite_f32 = nonan_f32[1:-1]
46 finite_f64 = nonan_f64[1:-1]
47 return finite_f16, finite_f32, finite_f64
48
49 def test_half_conversions(self):
50 """Checks that all 16-bit values survive conversion

Callers 1

test_half_correctnessMethod · 0.95

Calls 1

_create_arrays_nonanMethod · 0.95

Tested by

no test coverage detected