(self, f_dtype)
| 1193 | @pytest.mark.parametrize('f_dtype', [np.int8, np.int16, |
| 1194 | np.int32, np.int64]) |
| 1195 | def test_f_signed_int_big_jump(self, f_dtype): |
| 1196 | maxint = np.iinfo(f_dtype).max |
| 1197 | x = np.array([1, 3]) |
| 1198 | f = np.array([-1, maxint], dtype=f_dtype) |
| 1199 | dfdx = gradient(f, x) |
| 1200 | assert_array_equal(dfdx, [(maxint + 1) // 2]*2) |
| 1201 | |
| 1202 | @pytest.mark.parametrize('x_dtype', [np.uint8, np.uint16, |
| 1203 | np.uint32, np.uint64]) |
nothing calls this directly
no test coverage detected