(self, x_dtype)
| 1343 | @pytest.mark.parametrize('x_dtype', [np.uint8, np.uint16, |
| 1344 | np.uint32, np.uint64]) |
| 1345 | def test_x_decreasing_unsigned(self, x_dtype): |
| 1346 | x = np.array([3, 2, 1], dtype=x_dtype) |
| 1347 | f = np.array([0, 2, 4]) |
| 1348 | dfdx = gradient(f, x) |
| 1349 | assert_array_equal(dfdx, [-2] * len(x)) |
| 1350 | |
| 1351 | @pytest.mark.parametrize('x_dtype', [np.int8, np.int16, |
| 1352 | np.int32, np.int64]) |
nothing calls this directly
no test coverage detected