Skip to content

Commit 33cc3b4

Browse files
committed
refactor: add derivative pass-through
1 parent cde923a commit 33cc3b4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Blocks/sources.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -734,6 +734,9 @@ end
734734
# This needs to be extend for interpolation types
735735
apply_interpolation(interp, t) = interp(t)
736736

737+
function Symbolics.derivative(::typeof(apply_interpolation), args::NTuple{2, Any}, ::Val{2})
738+
Symbolics.derivative(args[1], (args[2],), Val(1))
739+
end
737740

738741
@register_symbolic build_interpolation(
739742
interpolation_type::UnionAll, u::AbstractArray, x::AbstractArray)

0 commit comments

Comments
 (0)