From a6edf5a879ed20d6abb25bf10104aa284ecfab3b Mon Sep 17 00:00:00 2001 From: Yichao Yu Date: Mon, 27 Apr 2015 21:17:44 -0400 Subject: [PATCH] Extend Base.gradient instead of defining a new one --- src/Calculus.jl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Calculus.jl b/src/Calculus.jl index 569088f..424b458 100644 --- a/src/Calculus.jl +++ b/src/Calculus.jl @@ -14,6 +14,8 @@ module Calculus jacobian, second_derivative + import Base: gradient + # TODO: Debate type system more carefully # abstract BundledFunction # abstract ScalarFunction