|
1 | 1 | module DataInterpolationsChainRulesCoreExt |
2 | | -if isdefined(Base, :get_extension) |
3 | | - using DataInterpolations: _interpolate, derivative, AbstractInterpolation, |
4 | | - LinearInterpolation, QuadraticInterpolation, |
5 | | - LagrangeInterpolation, AkimaInterpolation, |
6 | | - BSplineInterpolation, BSplineApprox, get_idx, get_parameters, |
7 | | - munge_data |
8 | | - using ChainRulesCore |
9 | | -else |
10 | | - using ..DataInterpolations: _interpolate, derivative, AbstractInterpolation, |
11 | | - LinearInterpolation, QuadraticInterpolation, |
12 | | - LagrangeInterpolation, AkimaInterpolation, |
13 | | - BSplineInterpolation, BSplineApprox, get_parameters, |
14 | | - munge_data |
15 | | - using ..ChainRulesCore |
16 | | -end |
| 2 | + |
| 3 | +using DataInterpolations: _interpolate, derivative, AbstractInterpolation, |
| 4 | + LinearInterpolation, QuadraticInterpolation, |
| 5 | + LagrangeInterpolation, AkimaInterpolation, |
| 6 | + BSplineInterpolation, BSplineApprox, get_idx, get_parameters, |
| 7 | + munge_data |
| 8 | +using ChainRulesCore |
17 | 9 |
|
18 | 10 | function ChainRulesCore.rrule(::typeof(munge_data), u, t) |
19 | 11 | u_out, t_out = munge_data(u, t) |
|
0 commit comments