(self)
| 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) |
nothing calls this directly
no test coverage detected