File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
lib/OrdinaryDiffEqDifferentiation/src Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 22function _alg_autodiff (alg:: OrdinaryDiffEqAlgorithm )
33 error (" This algorithm does not have an autodifferentiation option defined." )
44end
5- _alg_autodiff (:: OrdinaryDiffEqAdaptiveImplicitAlgorithm{CS, AD} ) where {CS, AD} = AD
6- _alg_autodiff (:: DAEAlgorithm{CS, AD} ) where {CS, AD} = AD
7- _alg_autodiff (:: OrdinaryDiffEqImplicitAlgorithm{CS, AD} ) where {CS, AD} = AD
5+ _alg_autodiff (alg :: OrdinaryDiffEqAdaptiveImplicitAlgorithm{CS, AD} ) where {CS, AD} = alg . autodiff
6+ _alg_autodiff (alg :: DAEAlgorithm{CS, AD} ) where {CS, AD} = alg . autodiff
7+ _alg_autodiff (alg :: OrdinaryDiffEqImplicitAlgorithm{CS, AD} ) where {CS, AD} = alg . autodiff
88_alg_autodiff (alg:: CompositeAlgorithm ) = _alg_autodiff (alg. algs[end ])
99function _alg_autodiff (:: Union {OrdinaryDiffEqExponentialAlgorithm{CS, AD},
1010 OrdinaryDiffEqAdaptiveExponentialAlgorithm{CS, AD}
1111}) where {
1212 CS, AD
1313}
14- AD
14+ alg . autodiff
1515end
1616
1717function alg_autodiff (alg)
You can’t perform that action at this time.
0 commit comments