Skip to content

Commit a6edf5a

Browse files
committed
Extend Base.gradient instead of defining a new one
1 parent b71a43f commit a6edf5a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Calculus.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ module Calculus
1414
jacobian,
1515
second_derivative
1616

17+
import Base: gradient
18+
1719
# TODO: Debate type system more carefully
1820
# abstract BundledFunction
1921
# abstract ScalarFunction

0 commit comments

Comments
 (0)