def test_gradient_y1_dx(self, array, dx): y1 = numpy.array(array) iy1 = inp.array(y1) result = inp.gradient(iy1, dx) expected = numpy.gradient(y1, dx) numpy.testing.assert_array_equal(expected, result)
def test_gradient_y1_dx(self, array, dx): np_y = numpy.array(array) dpnp_y = dpnp.array(array) result = dpnp.gradient(dpnp_y, dx) expected = numpy.gradient(np_y, dx) numpy.testing.assert_array_equal(expected, result)