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

Method test_lower_align

numpy/core/tests/test_umath.py:2821–2826  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2819 assert_equal(inp.min(), -1e10, err_msg=msg)
2820
2821 def test_lower_align(self):
2822 # check data that is not aligned to element size
2823 # i.e doubles are aligned to 4 bytes on i386
2824 d = np.zeros(23 * 8, dtype=np.int8)[4:-4].view(np.float64)
2825 assert_equal(d.max(), d[0])
2826 assert_equal(d.min(), d[0])
2827
2828 def test_reduce_reorder(self):
2829 # 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