def test_negative(): fun = lambda x : np.negative(x) d_fun = grad(fun) check_grads(fun, npr.rand()) check_grads(d_fun, npr.rand())
def negative(a: Numeric): return anp.negative(a)
def test_negative(): fun = lambda x: np.negative(x) check_grads(fun)(npr.rand())
def test_negative(): fun = lambda x : np.negative(x) check_grads(fun)(npr.rand())