(self, x_dtype)
| 1202 | @pytest.mark.parametrize('x_dtype', [np.uint8, np.uint16, |
| 1203 | np.uint32, np.uint64]) |
| 1204 | def test_x_decreasing_unsigned(self, x_dtype): |
| 1205 | x = np.array([3, 2, 1], dtype=x_dtype) |
| 1206 | f = np.array([0, 2, 4]) |
| 1207 | dfdx = gradient(f, x) |
| 1208 | assert_array_equal(dfdx, [-2]*len(x)) |
| 1209 | |
| 1210 | @pytest.mark.parametrize('x_dtype', [np.int8, np.int16, |
| 1211 | np.int32, np.int64]) |
nothing calls this directly
no test coverage detected