@@ -13,7 +13,7 @@ Base.setindex!(A::AbstractInterpolation,x,i) = A.u[i] = x
1313Base. setindex! (A:: AbstractInterpolation{true} ,x,i) =
1414 i <= length (A. u) ? (A. u[i] = x) : (A. t[i- length (A. u)] = x)
1515
16- using ChainRulesCore, LinearAlgebra, RecursiveArrayTools, RecipesBase, Reexport
16+ using LinearAlgebra, RecursiveArrayTools, RecipesBase, Reexport
1717@reexport using Optim
1818
1919include (" interpolation_caches.jl" )
@@ -24,20 +24,11 @@ include("derivatives.jl")
2424include (" integrals.jl" )
2525include (" online.jl" )
2626
27- function ChainRulesCore. rrule (:: typeof (_interpolate),
28- A:: Union {LagrangeInterpolation,AkimaInterpolation,
29- BSplineInterpolation,BSplineApprox}, t:: Number )
30- interpolate_pullback (Δ) = (NoTangent (), NoTangent (), derivative (A, t) * Δ)
31- return _interpolate (A, t), interpolate_pullback
32- end
33-
34- ChainRulesCore. frule ((_, _, Δt), :: typeof (_interpolate), A:: AbstractInterpolation ,
35- t:: Number ) = _interpolate (A, t), derivative (A, t) * Δt
36-
3727(interp:: AbstractInterpolation )(t:: Number ) = _interpolate (interp, t)
3828
3929if ! isdefined (Base, :get_extension )
40- include (" ../ext/SymbolicsExt.jl" )
30+ include (" ../ext/DataInterpolationsChainRulesCoreExt.jl" )
31+ include (" ../ext/DataInterpolationsSymbolicsExt.jl" )
4132end
4233
4334export LinearInterpolation, QuadraticInterpolation, LagrangeInterpolation,
0 commit comments