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

Method test_lower_align

numpy/_core/tests/test_umath.py:3114–3119  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3112 assert_equal(inp.min(), -1e10, err_msg=msg)
3113
3114 def test_lower_align(self):
3115 # check data that is not aligned to element size
3116 # i.e doubles are aligned to 4 bytes on i386
3117 d = np.zeros(23 * 8, dtype=np.int8)[4:-4].view(np.float64)
3118 assert_equal(d.max(), d[0])
3119 assert_equal(d.min(), d[0])
3120
3121 def test_reduce_reorder(self):
3122 # gh 10370, 11029 Some compilers reorder the call to npy_getfloatstatus

Callers

nothing calls this directly

Calls 4

assert_equalFunction · 0.90
viewMethod · 0.45
maxMethod · 0.45
minMethod · 0.45

Tested by

no test coverage detected