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

Method test_reduce_reorder

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

Source from the content-addressed store, hash-verified

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
3123 # and put it before the call to an intrinsic function that causes
3124 # invalid status to be set. Also make sure warnings are not emitted
3125 for n in (2, 4, 8, 16, 32):
3126 for dt in (np.float32, np.float16, np.complex64):
3127 for r in np.diagflat(np.array([np.nan] * n, dtype=dt)):
3128 assert_equal(np.min(r), np.nan)
3129
3130 def test_minimize_no_warns(self):
3131 a = np.minimum(np.nan, 1)

Callers

nothing calls this directly

Calls 2

assert_equalFunction · 0.90
minMethod · 0.45

Tested by

no test coverage detected