Skip to content

Commit 303e8b6

Browse files
committed
simplify derivative
1 parent 7f27628 commit 303e8b6

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/Interpolation/element.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,12 @@ function jacobian(f::AbstractElement,x)
4747
abstractmethod(f)
4848
end
4949

50+
function derivative(f,x)
51+
jac = jacobian(f,x)
52+
@assert length(jac) == 1
53+
return first(jac)
54+
end
55+
5056
"""
5157
normal(el,x̂)
5258

0 commit comments

Comments
 (0)