(self, *args, **kwargs)
| 10 | |
| 11 | class Polyval: |
| 12 | def setup(self, *args, **kwargs): |
| 13 | self.xs = {nx: xr.DataArray(randn((nx,)), dims="x", name="x") for nx in NX} |
| 14 | self.coeffs = { |
| 15 | ndeg: xr.DataArray( |
| 16 | randn((ndeg,)), dims="degree", coords={"degree": np.arange(ndeg)} |
| 17 | ) |
| 18 | for ndeg in NDEGS |
| 19 | } |
| 20 | |
| 21 | @parameterized(["nx", "ndeg"], [NX, NDEGS]) |
| 22 | def time_polyval(self, nx, ndeg): |